matplotlib 3D plot with PyQt4 in Qtabwidget (mplwidget)

Posted by artdijk on Stack Overflow See other posts from Stack Overflow or by artdijk
Published on 2011-01-01T20:16:42Z Indexed on 2011/02/01 7:25 UTC
Read the original article Hit count: 190

Filed under:
|
|
|

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

© Stack Overflow or respective owner

Related posts about 3d

Related posts about matplotlib