バーが描かれるたびに、色がランダムに変わります。どうして? その理由は何ですか?サイクル図面でカラーバーが色を変えるのはなぜですか? (matplotlib)
import matplotlib.pyplot as plt
from matplotlib import mlab
fig = plt.figure()
ax4 = fig.add_subplot(111)
ax4.set_xlim(-10,80)
ax4.set_ylim(0,30)
def view(ylist):
xmin = 0
xmax = 70.0
dx = 10
xlist = mlab.frange (xmin, xmax, dx)
ax4.bar(xlist, ylist, dx)
plt.pause(0.5)
plt.draw()
ylist = [0 for p in range(8)]
for i in range(10):
view(ylist)
ylist[0] +=1
ylist[3] +=2
plt.close()
コードバーを実行している間に色が周期的に変化していますが、どうして? 質問は何ですか - 問題は何ですか?
hm ...なぜ私を言葉なしに置くのですか...それは本当にばかげた質問ですか? –