Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
264 views
in Technique[技术] by (71.8m points)

python - Setting the axes for a polar plot

I want to plot many circles with different radius in a same plot.

The vector r that defines the values of the radius is:

[  1.00000000e-03   2.66987485e-02   9.99364934e-02   2.04070662e-01
   3.23949225e-01   4.50399555e-01   5.80583301e-01   7.16141066e-01
   8.61421435e-01   1.02245516e+00   1.20652269e+00   1.42195793e+00
   1.67776029e+00   1.98240507e+00   2.34088545e+00   2.74870569e+00
   3.18225661e+00   3.58893046e+00   3.88844787e+00   4.00000000e+00]

To plot I'm doing:

figure, ax = plt.subplots()
ax.set_aspect(1)
for i in range(len(r)):
    ax.add_artist(plt.Circle((1, 1),r[i],fill=False)
   
plt.show()

How can I adjust the axes in order to see all circles?

question from:https://stackoverflow.com/questions/65888348/setting-the-axes-for-a-polar-plot

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...