i am trying to separate the logic of matplotlib and wx gui elements. means i dont want to have plotting logic in wxpanel. so calculation which it based on can be done separetly.
in the sample app below, a panel is having 3 sizers…
one of the sizer is having the canvas of figure…
so far i can return the fig object at the from the calc. part, but cannot find a way to add to current panel.
i tried many combinations from stackovf but cant find the right answer. .