0
我寫了下面的代碼:Python的繪圖問題
full_list = [0, 10**3, 10**6, 10**9, 10**12, 10**15]
list1 = []
list2 = []
list3 = []
for hash_power in full_list:
x1 = Calc1()
list1.append(x1)
x2 = Calc2()
list2.append(x2)
x3 = Calc3()
list3.append(x3)
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(full_list,list1,'r-->',full_list,list2,'g--o',full_list,list3,'b--o')
plt.show()
當產生的身影,在x軸上的分佈只產生第一個和最後一個點,從中間的full_list忽略所有的點。
我知道範圍真的很大,但有沒有辦法顯示它?
你爲'plt'使用了什麼庫? – gmoshkin
import matplotlib.pyplot as plt – user123
Calc1/2/3的輸出是什麼? – TLOwater