[SciPy-user] Re: WxPyPlot
haase at msg.ucsf.edu
Mon Jul 25 13:26:22 CDT 2005
I actually don't know what a 'stripchart' is; but in case it is what a EKG
looks like then that's what I do: The right edge of my plot is alway "now"
the left is "3h ago" and the graphs are shifting to the left as goes on and
new data gets appended to the right.
I only measure twice a minute ! But I understand that wxPyPlot should easily
handle twice a second. The ugly part it in my code is the copying data for
implementing the "shifting" - I suppose there is no nice "circular-array"
thingy in numerical python: but this is only 5 lines of code anyway ...
My whole module including setting up the window frame is not more then 100
What are you data sources: Some custom hardware/C-code or does it come over
the network, ... ? Generally wx-people say stay with 'events' and don't use
threads just because "It looks like you could use threads for this" !!
I would be curious if matplotlib could update twice a second. Because
sometimes I actually would like to interact with the plots (like zooming and
panning) and also nice plots would be great.
WxPyPlot allows zooming and screenshots for printing is so far acceptable to
(Please note I cc'ed the list, because I always hope for other's
On Monday 25 July 2005 10:50, you wrote:
> "...regularly updating temperature graph plot..." sounds like the sort of
> thing I'd like to do: would you describe your plot as like a stripchart? I
> have in mind a monitoring program, with several sources of data, one thread
> per source (each forwarding data, as they become available, to a shared
> queue), and the stripchart (being part of the graphical interface, that'd
> be in the main thread) collecting data from the queue and updating itself.
> About twice a second, half a dozen data items, and (screen resolution
> permitting) about 10 minutes' worth of recent data visible, in case that
> Sorry if that sounds a bit garbled, but I am trying to do a bit of
> instrument reading/device control from python, and a stripchart would be a
> real bonus.
> Simon Duane
> PS - thanks for cc'ing the list!
> -----Original Message-----
> From: Sebastian Haase
> To: Arie S.
> Cc: SciPy Users List
> Sent: 7/25/05 5:20 PM
> Subject: [SciPy-user] Re: WxPyPlot
> Hi Arie,
> Thanks for your comment. Is WxPyPlot being further developed ? (what are
> other features you mention ??)
> I am actually using both in my code:
> WxPyPlot for regularly updating temperature graph plot,
> but I am using Plt for all other interactive things, mainly because it
> to me that WxPyPlot needs lot's more user set-up calls; e.g. In plt I
> use plt.figure() to open a new plot window and also it already has a
> interactive (meaning: short) syntax for choosing colors and markers.
> The good news is that I decoupled Plt from scipy yesterday. I'm happy
> to post
> that version somewhere if that's OK with the scipy license.
> (Please note I cc'ed the list, because I always hope for other's
> comments ...)
> On Monday 25 July 2005 02:37, you wrote:
> > Hi,
> > I've seen your msgs on SciPy user mailing list, and I couldn't agree
> > Anyway, wanted to inform you that WxPyPlot is a part of wx
> > these days (renamed plot.py).
> > At win platform you might find it at:
> > C:\Python24\Lib\site-packages\wx-2.6-msw-unicode\wx\lib\plot.py
> > (or at some similar locatiotion of other wx version).
> > It has also acquired some extra features, but is still "light".
> > Cheers,
> > Arie.
> SciPy-user mailing list
> SciPy-user at scipy.net
> This e-mail and any attachments may contain confidential and/or
> privileged material; it is for the intended addressee(s) only.
> If you are not a named addressee, you must not use, retain or
> disclose such information.
> NPL Management Ltd cannot guarantee that the e-mail or any
> attachments are free from viruses.
> NPL Management Ltd. Registered in England and Wales. No: 2937881
> Registered Office: Serco House, 16 Bartley Wood Business Park,
> Hook, Hampshire, United Kingdom RG27 9UY
More information about the SciPy-user