Polar line

plot 01 polar line

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, 500)
fig, ax = plotpress.subplots(projection="polar")
ax.plot(theta, np.abs(np.cos(3 * theta)), color="C0", linewidth=1.5)
ax.set_title("polar rose: r = |cos 3θ|")

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

Gallery generated by Sphinx-Gallery