Re: [Matplotlib-users] using it in a Qt5-Widget

2015-01-31 Thread Benjamin Root
By the way, soon I will have a book out on creating interactive applications using matplotlib. I devote an entire chapter to clearly (I hope!) demonstrating how to use particular GUI toolkits with matplotlib. It is currently going through the final pre-publishing steps, so I should be announcing it

Re: [Matplotlib-users] using it in a Qt5-Widget

2015-01-28 Thread Sterling Smith
Did you come across http://matplotlib.org/examples/user_interfaces/embedding_in_qt4.html ? -Sterling On Jan 28, 2015, at 11:38AM, moon...@posteo.org wrote: > On 2015-01-28 16:25 Thomas Caswell wrote: >> It should be exactly the same as for Qt4, just importing from the Qt5 >> version > > Sorry,

Re: [Matplotlib-users] using it in a Qt5-Widget

2015-01-28 Thread Paul Hobson
At the top of www.matplotlib.org, there is an "examples" link. Scroll down a bit, there's a section titled "user interface examples" http://matplotlib.org/examples/user_interfaces/index.html The QT4 example works on my machine currently, so it's reasonably up to date. -p On Wed, Jan 28, 2015 at

Re: [Matplotlib-users] using it in a Qt5-Widget

2015-01-28 Thread Thomas Caswell
http://matplotlib.org/examples/user_interfaces/embedding_in_qt4_wtoolbar.html and http://matplotlib.org/examples/user_interfaces/embedding_in_qt4.html are a good place to start. Embedding a mpl figure in a QWidget is how the QtAgg backend family works and how the interactive windows work. Tom O

Re: [Matplotlib-users] using it in a Qt5-Widget

2015-01-28 Thread moonkid
On 2015-01-28 16:25 Thomas Caswell wrote: > It should be exactly the same as for Qt4, just importing from the Qt5 > version Sorry, but my question was to unspecific. I don't know how it worked with Qt4. I need to know I can "draw" a plot into a QWidget or something else. I couldn't find an exam

Re: [Matplotlib-users] using it in a Qt5-Widget

2015-01-28 Thread Thomas Caswell
It should be exactly the same as for Qt4, just importing from the Qt5 version Tom On Wed Jan 28 2015 at 11:24:55 AM wrote: > I read the documentation a little bit. But I couldn't find a hint how > to integrate a plot with matplotlib into a Qt5-Gui. > > --