You are reading an old version of the documentation (v1.5.3). For the latest version see

Matplotlib 2.0.0rc2 is available

Install the release candidate now!



This Page

pylab_examples example code: polar_demo.pyΒΆ

(Source code, png, hires.png, pdf)

Demo of a line plot on a polar axis.
import numpy as np
import matplotlib.pyplot as plt

r = np.arange(0, 3.0, 0.01)
theta = 2 * np.pi * r

ax = plt.subplot(111, projection='polar')
ax.plot(theta, r, color='r', linewidth=3)

ax.set_title("A line plot on a polar axis", va='bottom')

Keywords: python, matplotlib, pylab, example, codex (see Search examples)