Re: [Matplotlib-users] Fwd: load data from string or array to Image

2008-03-26 Thread sa6113
I use matplotlib and Backend Agg to draw a plot , I want to show this plot in my GUI in specific area (Plot area) , I need to have the image object in oder to show it, so I have to convert this plot to string or array or save in buffer and then load it to an Image , I want to know , can I accompli

Re: [Matplotlib-users] windrose OO

2008-03-26 Thread Alan G Isaac
On Wed, 26 Mar 2008, Lionel Roubeyrie apparently wrote: > [Attachment: windrose_oo.py : APPLICATION/X-PYTHON, 28502 bytes] Thanks for the update. Cheers, Alan Isaac - Check out the new SourceForge.net Marketplace. It's t

Re: [Matplotlib-users] OT warning! Re: Plotting in C++ (Christopher Barker)

2008-03-26 Thread Tony Mannucci
At 10:03 AM -0700 3/25/08, [EMAIL PROTECTED] wrote: >Message: 1 >Date: Tue, 25 Mar 2008 09:43:14 -0700 >From: Christopher Barker <[EMAIL PROTECTED]> >Subject: [Matplotlib-users] OT warning! Re: Plotting in C++ >To: 'matplotlib-users' >Cc: Francesco Biscani <[EMAIL PROTECTED]> >Message-ID: <[EMAI

Re: [Matplotlib-users] saving a PNg jsut as dispalyed

2008-03-26 Thread Ryan Krauss
I think this line in the rc file is the trick #savefig.dpi : 100 On Wed, Mar 26, 2008 at 6:16 PM, Christopher Barker <[EMAIL PROTECTED]> wrote: > Hi all, > > I want to save a figure just like it is displayed i.e. the same dpi > (wxAgg). However, the default Figure.savefig uses a different

[Matplotlib-users] Fwd: load data from string or array to Image

2008-03-26 Thread Anthony Floyd
Forgot to reply-to-list... -- Forwarded message -- From: Anthony Floyd <[EMAIL PROTECTED]> Date: Wed, Mar 26, 2008 at 4:54 PM Subject: Re: [Matplotlib-users] load data from string or array to Image To: sa6113 <[EMAIL PROTECTED]> On Wed, Mar 26, 2008 at 1:33 AM, sa6113 <[EMAIL PRO

[Matplotlib-users] saving a PNg jsut as dispalyed

2008-03-26 Thread Christopher Barker
Hi all, I want to save a figure just like it is displayed i.e. the same dpi (wxAgg). However, the default Figure.savefig uses a different dpi setting than the figure as displayed, so I'm doing: dpi = Fig.get_dpi() Fig.savefig(str(path), dpi=dpi) which seems to work, but seems more awkward than

[Matplotlib-users] unicode filenames and MPL.

2008-03-26 Thread Christopher Barker
Hi all, I'm writing a little MPL embedded in wxPython app, and just ran into this: Traceback (most recent call last): ... ... "/matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg/matplotlib/backends/backend_agg.py", line 397, in print_png self.get_renderer()._renderer.write_png(filename, se

[Matplotlib-users] capturing arrow key events

2008-03-26 Thread Alexandre Zabot
Hi, Tim Leslie reported a bug in GTK/GTKAgg backends concerning the down arrow key. You can read his message here: http://sourceforge.net/mailarchive/message.php?msg_id=20050413093244.GA4688%40cse.unsw.edu.au

Re: [Matplotlib-users] [newbie] "live" plots of multiple lines

2008-03-26 Thread Chris Withers
Matthias Michler wrote: My x-axis is time, and as new points are plotted, even though I'm following the above recipe pretty closely, the x-tick spacing isn't getting sorted out, so I end up with just a jumble as the tick labels for the x-axis. Do you know why this might be? I'm not sure I under

Re: [Matplotlib-users] problems in Inkscape with SVG exported from matplotlib

2008-03-26 Thread Michael Droettboom
For the sake of the list, I'm linking the response to my question on the Inkscape mailing list -- this is certainly an Inkscape bug, that their copy-and-paste functionality does not handle use/defs correctly. However, as the workaround in mpl was easy enough, we don't have to wait for Inkscape

Re: [Matplotlib-users] draw_tex NotImplementedError in backend_bases.py

2008-03-26 Thread Ryan Krauss
Sorry, I meant PEBKAC. On 3/26/08, Ryan Krauss <[EMAIL PROTECTED]> wrote: > Thanks for all the quick responses. Yes, it seems that WXAgg and > usetex work fine together. So the problem was definitely on our end. > KEBKAC. > > Thanks again, > > > Ryan > > > On 3/26/08, [EMAIL PROTECTED] <[EM

Re: [Matplotlib-users] draw_tex NotImplementedError in backend_bases.py

2008-03-26 Thread Ryan Krauss
Thanks for all the quick responses. Yes, it seems that WXAgg and usetex work fine together. So the problem was definitely on our end. KEBKAC. Thanks again, Ryan On 3/26/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > "Ryan Krauss" <[EMAIL PROTECTED]> writes: > > > /usr/lib/python2.5/site-p

Re: [Matplotlib-users] draw_tex NotImplementedError in backend_bases.py

2008-03-26 Thread Jouni . Seppanen
"Ryan Krauss" <[EMAIL PROTECTED]> writes: > /usr/lib/python2.5/site-packages/matplotlib/backends/backend_wx.py in > draw_if_interactive() This means you are using the Wx backend, which doesn't implement usetex. Try WxAgg instead. -- Jouni K. Seppänen http://www.iki.fi/jks

Re: [Matplotlib-users] draw_tex NotImplementedError in backend_bases.py

2008-03-26 Thread Darren Dale
On Wednesday 26 March 2008 11:20:46 am Ryan Krauss wrote: > I think I have correctly installed from source. I checked the > dependencies for USETEX and have the right versions for dvipng, gs, > latex, and pdftops. When trying to plot with text.usetex=True I get [...] > Does this mean we really di

Re: [Matplotlib-users] draw_tex NotImplementedError in backend_bases.py

2008-03-26 Thread Michael Droettboom
It looks like you're trying to use the Wx backend, where usetex is not supported. See here for a matrix of which features are supported with each backend: http://matplotlib.sourceforge.net/backends.html Set the backend setting in your matplotlibrc file or call "matplotlib.use" at the top of yo

Re: [Matplotlib-users] easy way to find and install all dependencies for Ubuntu source install

2008-03-26 Thread Ryan Krauss
Thanks Darren. I think we got this right, but I started a new thread with a usetex problem after we installed. I don't know if this is really a build problem or some other bug. Maybe it should be the same thread. Ryan On 3/26/08, Darren Dale <[EMAIL PROTECTED]> wrote: > On Wednesday 26 March 2

[Matplotlib-users] draw_tex NotImplementedError in backend_bases.py

2008-03-26 Thread Ryan Krauss
I think I have correctly installed from source. I checked the dependencies for USETEX and have the right versions for dvipng, gs, latex, and pdftops. When trying to plot with text.usetex=True I get Traceback (most recent call last) /home/william/svn/matplotlib/ in () /usr/lib/python2.5/site

Re: [Matplotlib-users] easy way to find and install all dependencies for Ubuntu source install

2008-03-26 Thread Darren Dale
On Wednesday 26 March 2008 10:15:13 am Ryan Krauss wrote: > I need to help a friend install from source on Ubuntu Gutsy. What is > the easiest way to determine all dependencies and make sure he has all > the right dev packages? I suspect we want to install the WXAgg, > GTKAgg, TkAGG, and postscri

Re: [Matplotlib-users] problems in Inkscape with SVG exported from matplotlib

2008-03-26 Thread Michael Droettboom
Peter I. Hansen wrote: > On Tue, Mar 25, 2008 at 11:33 PM, Kaushik Ghose <[EMAIL PROTECTED]> wrote: > >> Hi Everyone, >> >> I have a peculiar problem, and I wonder if anyone can assist me. >> >> I have two figures generated from matplotlib and saved as svgs. They >> both print fine, and they

Re: [Matplotlib-users] problems in Inkscape with SVG exported from matplotlib

2008-03-26 Thread Michael Droettboom
I didn't write the first pass of SVG support, that was done before I got involved -- I'm not sure who to credit, but he or she deserves most of it. I did add the feature that's causing grief here -- the embedding of character outlines directly in the SVG file. I've committed a change in SVN (bo

Re: [Matplotlib-users] problems in Inkscape with SVG exported from matplotlib

2008-03-26 Thread Peter I. Hansen
On Tue, Mar 25, 2008 at 11:33 PM, Kaushik Ghose <[EMAIL PROTECTED]> wrote: > Hi Everyone, > > I have a peculiar problem, and I wonder if anyone can assist me. > > I have two figures generated from matplotlib and saved as svgs. They > both print fine, and they load in Inkscape just fine. > > How

[Matplotlib-users] easy way to find and install all dependencies for Ubuntu source install

2008-03-26 Thread Ryan Krauss
I need to help a friend install from source on Ubuntu Gutsy. What is the easiest way to determine all dependencies and make sure he has all the right dev packages? I suspect we want to install the WXAgg, GTKAgg, TkAGG, and postscript backends. Thanks, Ryan -

Re: [Matplotlib-users] problems in Inkscape with SVG exported from matplotlib

2008-03-26 Thread Michael Droettboom
When matplotlib outputs an SVG, each unique character is assigned a numeric id (these are just assigned in order), and inserted as a "def", and then "use"d (referenced) wherever they are used. When you paste on SVG into another, those names clash, and Inkscape is pulling in the wrong characters

Re: [Matplotlib-users] Loading and saving arbitrary objects with attributes

2008-03-26 Thread Pierre GM
On Wednesday 26 March 2008 07:16:37 Troels Kofoed Jacobsen wrote: > Hi. > > Does anyone know how to save and load an arbitrary object (e.g a numpy > array) to a file, and load it again? Have you tried to pickle your object w/ cPickle ? -

[Matplotlib-users] Loading and saving arbitrary objects with attributes

2008-03-26 Thread Troels Kofoed Jacobsen
Hi. Does anyone know how to save and load an arbitrary object (e.g a numpy array) to a file, and load it again? I cannot use savetxt and loadtxt as these only stores the numbers. I think I'm looking for some binary format. Best regards / Med Venlig Hilsen Troels Kofoed Jacobsen ---

[Matplotlib-users] windrose OO

2008-03-26 Thread Lionel Roubeyrie
Hi all, find with this message a modified version of windrose to be OO compliant. It uses inheritance from PolarAxes to create a WindroseAxes, with 4 methods (contour, contourf, bar and box). BTW it's now possible to control it like any other axes, with the limitation of subploting (subplot is t

[Matplotlib-users] load data from string or array to Image

2008-03-26 Thread sa6113
I have a problem to load data from string or array to Image but without using PIL , because I have to check the application in 6 different platforms like Windows 32bit, Windows X64 (64bit version), Linux 32bit, Linux 64bit x86_64, Linux IPF (Itanium Processor Family) and HP-UX 64. There is a cod

[Matplotlib-users] Controlling the wxpython matplotlib-frame

2008-03-26 Thread Wolfgang Kerzendorf
Hello all, I have trouble with one of my scripts that uses matplotlib when using python or ipython. The first time it opens, it does not hand the control back o the shell and can be used to work on the matplotlib figure interactively (I use an event handler and picker objects to change my p

Re: [Matplotlib-users] Using PIL in the Linux!

2008-03-26 Thread Eric Firing
sa6113 wrote: > I want to use PIL in order to load from string to Image , but there is a > problem , I can use PIL only in Windows platform whiles I want to use it in > Linux and another Platforms. > What should I do ? No problem. Chances are, your distro has it as a package. In ubuntu it is "p