コードはエラーなく通るのですがうまく円がかけずに写真のようになってしまいます.
コード上のミスなどがあれば教えていただきたいです.よろしくお願いします.
import
1import matplotlib.pyplot as plt 2import matplotlib.ticker as tick 3 4x = np.arange(-190,190,10) 5f1 = np.sqrt(36100-x**2) 6f2 = -np.sqrt(36100-x**2) 7 8plt.rc("font",family="serif") 9plt.figure() 10plt.xlim([-200,200]) 11plt.ylim([-200,200]) 12plt.plot(f1,color="black") 13plt.plot(f2,color="black") 14 15plt.gca().xaxis.set_minor_locator(tick.MultipleLocator(1)) 16plt.gca().yaxis.set_minor_locator(tick.MultipleLocator(1)) 17plt.grid(which="minor") 18 19plt.show() 20コード
回答2件
あなたの回答
tips
プレビュー