Python Forum
Ploting polar chart with circumference as Zero - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Ploting polar chart with circumference as Zero (/thread-24356.html)



Ploting polar chart with circumference as Zero - ibaad1406 - Feb-10-2020

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]]