Feb-10-2020, 05:53 PM
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.
]
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)