0
플롯을 제어하는 세 번째 슬라이더를 만들려고합니다.matplotlib에 추가 슬라이더 추가
fig, ax = plt.subplots()
plt.subplots_adjust(left=0.25, bottom=0.25)
l, = plt.plot(u,v, lw=1, color='red')
plt.axis([-20, 20, -20,20])
amp_slider_ax = fig.add_axes([0.25, 0.15, 0.65, 0.03], axisbg=axis_color)
samp = Slider(amp_slider_ax, 'Ey', 1, 10.0, valinit=a0)
freq_slider_ax = fig.add_axes([0.25, 0.1, 0.65, 0.03], axisbg=axis_color)
sfreq = Slider(freq_slider_ax, 'gamma (Ex/Ey)', 0.01, 1.3, valinit=f0)
#new slider
fbz_slider_ax = fig.add_axes([3, 7, 0.65, 0.03], axisbg=axis_color)
sbz = Slider(fbz_slider_ax, 'Bz', 0.01, 1.3, valinit=b0)
내 세 번째 슬라이더가 초기화되지 않는 이유가 표시되지 않습니다. 누군가 3 개의 슬라이더로 예제를 제공 할 수 있습니까? 슬라이더 객체를 호출 할 때 오류가 발생하지 않습니다.
이미 [두 개의 슬라이더] (http://matplotlib.org/users/screenshots.html#slider-demo)가있는 예제가 있는데 여기에 몇 가지 노트를 추가했습니다 (http://stackoverflow.com)./questions/43381449/how-to-make-two-slider-in-matplotlib/43382206 # 43382206). – berna1111