[Matplotlib-users] close-event

2009-11-15 Thread Gregor Thalhammer
Hi all, I want to use matplotlib to plot in realtime the position of a microscope stage, read out over a serial connection. Essentially I reached my goal, starting from the example simple_idle_wx.py http://matplotlib.sourceforge.net/examples/animation/simple_idle_wx.html Now I have two quest

[Matplotlib-users] close_event

2009-11-12 Thread Gregor Thalhammer
Hi all, I want to use matplotlib to plot in realtime the position of a microscope stage, read out over a serial connection. Essentially I reached my goal, starting from the example simple_idle_wx.py http://matplotlib.sourceforge.net/examples/animation/simple_idle_wx.html Now I have two questions

Re: [Matplotlib-users] Canvas in wx.ScrolledPanel

2009-05-14 Thread Gregor Thalhammer
Thomas Coudrat schrieb: > Hello list, > > I am new here an i need help on something : I am using Matplotlib in > the wxPython GUI, and i am trying to draw a BIG canvas, in a SMALL > window, which would be scrollable. > My implementation works if i use simple text too long for the size of > the w

Re: [Matplotlib-users] show annotations only on hovering

2009-04-15 Thread Gregor Thalhammer
Vito De Tullio schrieb: > Hi all. > I'm using matplotlib to draw some graph in a pyqt application. > Is there a way to show infos only when the mouse hover the plot nodes? > At the moment I'm stuck using this (ugly, and conceptually wrong) piece of > code, written by me... > > basically I add hidde

Re: [Matplotlib-users] imread() and PNGs

2009-04-06 Thread Gregor Thalhammer
Eric Firing schrieb: > Gregor Thalhammer wrote: >> Tobias Wood >> [...] > [...] >> I also noticed you used C++ constructs in your code. I think this is >> not recommended. > > Gregor, > > Would you elaborate, please, to satisfy my curiosity? The origina

Re: [Matplotlib-users] imread() and PNGs

2009-04-05 Thread Gregor Thalhammer
Tobias Wood [...] > These have thrown up an interesting issue - to what maximum value > should n-bit images be scaled when n is between 8 and 16? The png spec > and test images suggest it should be (2^n - 1). This means that higher > bit depths give higher precision over the same intensity range

Re: [Matplotlib-users] Fuzzy plots of ode solutions

2008-12-13 Thread Gregor Thalhammer
Years ago I observed a similar behaviour with gnuplot. This behaviour appears if you use line join style 'miter' and if your data is very fine spaced with small noise. Then in the figure the noise appears much larger than it actually is. Limited output precision for representing the plot data i

Re: [Matplotlib-users] IOError: decoder jpeg not available

2008-11-06 Thread Gregor Thalhammer
Nils Wagner schrieb: > Hi all, > > I tried to read a jpg file. > How can fix the following problem ? > > Which operating system are you using? The problem arise in the PIL (Python Imaging Library). It cannot find the libjpeg library (you have it installed on your system?). Try to install libjp

Re: [Matplotlib-users] How to insert a new button?

2008-11-06 Thread Gregor Thalhammer
sordnay schrieb: > Hi > I would like to insert a new button on the standard figure toolbar, > is there an easy way? maybe someone can post an example This depends on the backend/GUI toolkit you use. If you use wx, a simple approach might be the following: -- from pylab import * i

Re: [Matplotlib-users] Problems plotting/closing figures within a thread

2008-10-06 Thread Gregor Thalhammer
jcarnes schrieb: > I am writing a GUI application in wxPython and using MPL that plots figures, > saves them to image files, and then closes them all from within a thread to > keep the GUI responsive. Using the Enthought 2.3 install I would > sporatically have crashes that were hard to reproduce, b

Re: [Matplotlib-users] matploblib communication problem, graphics question

2008-05-25 Thread Gregor Thalhammer
> [had to delete an endless amount of stuff not related to matplotlib] matplotlib is _not_ a dedicated image manipulation package, so please don't blame it that you don't manage to easily use it as such one. However, matplotlib indeed offers high quality image scaling abilities (at the moment

Re: [Matplotlib-users] Plotting data in real time

2008-05-23 Thread Gregor Thalhammer
Robert Garrett schrieb: > Hi, > I'd like to use Python to plot data in real-time. I've created a GUI > using wxPython and have embedded a Matplotlib graph into a pane. My > problem is that I don't know the best way to update the graph. What's > the recommended method for this? First use the s

Re: [Matplotlib-users] matplotlib RPM on SUSE 10.2?

2007-06-01 Thread Gregor Thalhammer
John Pye schrieb: > Hi all > > Can anyone tell me whether or not it is straightforward to run > matplotlib on OpenSUSE 10.2? > > My project has a dependency on matplotlib and I have a user on that > platform who tells me that it's not available as an RPM in the SUSE > repository. Can that really