matplotlib wxpython integration

ive managed to get matplotlib figures displaying inside a wx frame (see attached code)

this works very well, but i also want to be able to add buttons to the same frame (using a horizontal boxsizer, with the figure on the left)

in the attached code there are 2 lines that are commented out. they give an idea of the kind of layout that i want (pretty simple). but as soon as you uncomment those lines and run it, the entire figure disappears and it doesnt actually give the layout that I would expect

any help with this would be appreciated

integrationTest.py (1.07 KB)

Your setting the button's parent to self (the frame)--it should be
self.panel. Classic wxBoner. (been there many times).

ยทยทยท

On Fri, Aug 2, 2013 at 7:12 PM, Simon Ho <simonsays87@googlemail.com> wrote:

ive managed to get matplotlib figures displaying inside a wx frame (see
attached code)

this works very well, but i also want to be able to add buttons to the same
frame (using a horizontal boxsizer, with the figure on the left)

in the attached code there are 2 lines that are commented out. they give an
idea of the kind of layout that i want (pretty simple). but as soon as you
uncomment those lines and run it, the entire figure disappears and it doesnt
actually give the layout that I would expect