Code
import numpy as np
import matplotlib.pyplot as plt
= np.arange(0, 2, 0.01)
r = 2 * np.pi * r
theta = plt.subplots(subplot_kw={'projection': 'polar'})
fig, ax
ax.plot(theta, r)0.5, 1, 1.5, 2])
ax.set_rticks([True)
ax.grid( plt.show()
Norah Smith
May 22, 2021
For a demonstration of a line plot on a polar axis, see Figure 1.