matplotlib 3D plot with PyQt4 in Qtabwidget (mplwidget)
- by artdijk
I am working on my first Python app using PythonXY (2.6 and Qt4).
I have a window with some buttons and a QtabWidget.
When I press a button I want to plot a 3D image on a specific tab. I managed to get a 2D plot but I can't get the axes to 3D.
Via Qt desiger I use the mplwidget. In many examples I see the use of figure(), but I can't get that to work with the mplwidget. (I am not sure if that is even possible)
Can you please show me an example of code defining the 3D axes (in a QtabWidget) with a simple plot ?
Thanks very much