1

i need to make a polar plot with just the main data content visible. for now i have managed to get the following image by using these simple codes. but there is still one outline circle left around it. how can i remove it

import matplotlib.pyplot as plt
import matplotlib as mpl
import numpy as np

data = np.random.randint(1800,2200,(24*60))
data = list(data)
data.append(data[0])
print(data)
theta = np.arange(0,360+360/(24*60),360/(24*60))*np.pi/180
plt.polar(theta, data)
plt.xticks([])
plt.yticks([])
plt.savefig("p.png")
plt.show()

enter image description here

Eshaka
  • 946
  • 11
  • 34

1 Answers1

1

This should do the trick: plt.box(on=None)

Solution inspired from the Q: Removing frame while keeping axes in pyplot subplots

Yaakov Bressler
  • 6,210
  • 2
  • 31
  • 51