このプログラムを実行するとthetaの軸が-80,-60・・・60,80となっていますが、-90,-60,-30・・・30,60,90
というふうに表示させたいです。
import numpy as np
import matplotlib.pyplot as plt
N = 100
r = np.random.rand(N)
theta = 2 * np.pi * np.random.rand(N)
fig = plt.figure(figsize=(8,8))
ax = fig.add_subplot(111, projection='polar')
ax.scatter(theta, r)
ax.axes.set_theta_zero_location('N')
ax.set_thetamin(-90)
ax.set_thetamax(90)
ax.set_title('Polar coordinates',fontsize=18)
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2021/12/07 14:57