Graph polar functions with polar grid.
from math import * import matplotlib.pyplot as plt import numpy as np plt.axis((-6,6,-4,4)) t = np.linspace(0,2*pi,50) for r in (1,2,3,4,5): x = np.cos(t)*r y = np.sin(t)*r plt.plot(x,y,'gray') plt.show()
Create, edit, and import your Python scripts
Graph polar functions with polar grid.
from math import * import matplotlib.pyplot as plt import numpy as np plt.axis((-6,6,-4,4)) t = np.linspace(0,2*pi,50) for r in (1,2,3,4,5): x = np.cos(t)*r y = np.sin(t)*r plt.plot(x,y,'gray') plt.show()