Inserting slider in figure under wxpython


I’m trying to insert a slider into my figure like the on in the example

from the slider_demo i have:

axcolor = ‘lightgoldenrodyellow’
axfreq = axes([0.25, 0.1, 0.65, 0.03])
sfreq = Slider(axfreq, ‘Freq’, 0.1, 30.0, valinit = f0)

i have a figure with an axes where i displayed an image using imshow. Like:

a = self.fig.gca()

I’ve tried different stuff, but i get an assertion error when I try:


Has anyone here tried doing the slider_demo under wxpython?