Python Forum

Full Version: Ploting polar chart with circumference as Zero
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to create a polar plot in which value of r is in increasing direction from circumference to center of circle.
Code for decreasing direction is given as and figure is attached.



import matplotlib.pyplot as plt
import numpy as np 
fig = plt.figure(figsize=(10,5),dpi = 200)
ax1 = plt.subplot(111, projection='polar')
ax1.set_theta_zero_location("N")
ax1.set_rorigin(0)
ax1.set_rlabel_position(0)  # get radial labels away from plotted line
ax1.grid(True)


theta = np.linspace(0,10,100)
r = np.sin(theta)
ax1.plot(theta, r)
[Image: show?code=XZ38yskZnYjX2pdV6mL3bJX4waj3lQiqHeo7]]