Note
Go to the end to download the full example code.
Polar fill

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
theta = np.linspace(0, 2 * np.pi, 400)
r = 0.6 + 0.3 * np.sin(4 * theta)
fig, ax = plotpress.subplots(projection="polar")
ax.fill(theta, r, color="C1", alpha=0.5)
ax.plot(theta, r, color="C1")
ax.set_title("polar fill")
Total running time of the script: (0 minutes 0.090 seconds)