On Sun, Aug 2, 2009 at 8:14 AM, Janwillem<jwevand...@xs4all.nl> wrote: > > The problem: > I have files with time versus signal data of a large series of measurements. > The python application (using wxPython actually) scans the file, applies > some math (numpy/scipy) on each record of data and than must show the signal > as a plot. After clicking OK the next record of measurement data is > processed and shown. So I do need some construct that allows showing a > series of figure one after the other. My solution works ok but I would think > that there should be an elegant shortcut that directly scales the > mathplotlib figure to a bitmap that can be shown. > Does that better explain the purpose of my question?
You are probably doing the best thing using wx for the event handling in this app, but you do not need to save to png. You can get access to the rendered figure in code as either a python buffer or string, using one of several *Agg backend methods, eg buffer_rgba, tostring_rgb, tostring_argb. See for example http://matplotlib.sourceforge.net/examples/pylab_examples/agg_buffer_to_array.html JDH ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users