私は複数の数字を作成しましたが、一度にすべて表示したくないのですが、どのようにボタンやチェックボックスを使用できますか?Matplotlibチェックボックス(前と次)
私は次の、他の図の変更
私のコードが、このショーの2つの数字を中クリックして、私はこのようないけない:
import matplotlib.pyplot as plt
intervals = ['52, 57', '57, 62', '62, 67', '67, 72', '72, 77', '77, 82', '82, 87']
absolute = [3, 11, 23, 27, 10, 5, 1]
pos = np.arange(len(absolute))
# figure with bars fi
width = 1.0
fig1= plt.figure()
ax1 = plt.axes()
ax1.plot(pos, absolute, '-', linewidth=2)
# figure with lines fi
fig2 = plt.figure()
pos = np.arange(len(absolute))
x = np.linspace(0, 10)
ax = plt.axes()
ax.plot(pos, absolute, '--', linewidth=2)
plt.show()
はどうもありがとうございました!
おはようございます!
。スライダ(int、float)、ラジオボタン、コンボボックスなどがあります。 – roadrunner66
[mcve]をご覧ください。実行可能でありながら最小限の例を人に与えるようにしてください。上の 'absolute_frecuency'のためのベクトルを提供します。 – roadrunner66
ありがとう、おかげで、ごめん、訂正を待ちます – Milor123