Polar scatter

plot 02 polar scatter

Live figure — pick a tool, then zoom, pan, point-pick or annotate. Nothing is active until a tool is selected.

View this figure’s Vega export ↗ — the raw JSON spec, rendered live by a real Vega engine.

View this figure’s Vega-Lite export ↗ — the raw JSON spec(s), rendered live by a real Vega-Lite engine.

import numpy as np
import plotpress

rng = np.random.default_rng(0)
theta = rng.uniform(0, 2 * np.pi, 200)
r = rng.uniform(0.2, 1.0, 200)
fig, ax = plotpress.subplots(projection="polar")
ax.scatter(theta, r, c=r, cmap="viridis", s=14)
ax.set_title("polar scatter")

Total running time of the script: (0 minutes 0.101 seconds)

Gallery generated by Sphinx-Gallery