Python Forum
Ploting polar chart with circumference as Zero
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ploting polar chart with circumference as Zero
#1
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]]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Ploting single column with multiple category drunkenneo 1 1,946 May-26-2021, 04:51 PM
Last Post: jefsummers
  Problem with contourf plot and polar projection weihnachtsmo 0 1,461 Aug-27-2019, 11:42 AM
Last Post: weihnachtsmo
  ploting dot lioko 3 2,123 Apr-17-2019, 08:21 AM
Last Post: scidam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020