2.0.2 之后发布的 matplotlib 会导致极坐标图绘制不正确。绿色图的顶部消失了。版本之间没有更改任何输入数据。
版本 2.1.0

2.0.2 版本(好)

import matplotlib.pyplot as plt
theta_radians = np.radians(theta)
fig = plt.figure()
ax = fig.add_subplot(111, polar=True)
ax.set_theta_zero_location("S")
ax.plot(theta_radians, r, color='green')
ax.plot(np.dot(theta_radians, -1), r, color='green')
ax.plot(horiz, arr[25, :])
fig.savefig('./filename.png', dpi=300)
fig.show()
有只小跳蛙
天涯尽头无女友
随时随地看视频慕课网APP
相关分类