[Matplotlib-users] circle not drawn correctly when axis is flipped

2007-12-11 Thread Matthew Auger
I'm trying to plot a circle AND flip an axis of the plot, but this leads to an inverted circle (diamond) being drawn. Is there any way to do this 'neatly' (besides, for example, manually editing the axis labels or using a many-sided polygon to fake a circle)? Note that the circle renders

[Matplotlib-users] using strpdate2num in load

2007-12-11 Thread Emmanuel
Hi, I've a little problem with date conversion. I have a csv file which looks like : Data,Valor 15/01/2007, 6,700012000 12/01/2007, 6,659903000 11/01/2007, 6,701586000 I try to get date using function strpdate2num in load doing this : from pylab import datestr2num, load def comma_nb2float(A):

Re: [Matplotlib-users] Printing gif images to file with matplotlib

2007-12-11 Thread Michael Droettboom
You can just pass a path to savefig, e.g.: savefig(/home/me/test.png) (The format is automatically determined from the extension). If you want to know which formats are supported by which backends, you can have a look at FILETYPES in the source tree here:

Re: [Matplotlib-users] using strpdate2num in load

2007-12-11 Thread John Hunter
On Dec 11, 2007 6:00 AM, Emmanuel [EMAIL PROTECTED] wrote: Hi, I've a little problem with date conversion. I have a csv file which looks like : Data,Valor 15/01/2007, 6,700012000 12/01/2007, 6,659903000 11/01/2007, 6,701586000 I try to get date using function strpdate2num in load doing

Re: [Matplotlib-users] Repeated calls to set_text using TeX formatting results in RuntimeError

2007-12-11 Thread Michael Droettboom
I believe this is a known bug with 0.90.1. Are you able to run 0.91.1? Cheers, Mike [EMAIL PROTECTED] wrote: I'm doing a parameter fitting exercise, and plotting the progress as I do so. I have found that repeated calls to set_text() on a text object will result in an error opening a font

[Matplotlib-users] Repeated calls to set_text using TeX formatting results in RuntimeError

2007-12-11 Thread Brian.Boonstra
I'm doing a parameter fitting exercise, and plotting the progress as I do so. I have found that repeated calls to set_text() on a text object will result in an error opening a font file iff the text uses TeX formatting. (I am not using the experimental usetex feature). I speculate that

Re: [Matplotlib-users] Repeated calls to set_text using TeX formatting results in RuntimeError

2007-12-11 Thread John Hunter
On Dec 11, 2007 8:17 AM, Michael Droettboom [EMAIL PROTECTED] wrote: I believe this is a known bug with 0.90.1. Are you able to run 0.91.1? If I am reading this right, according to the svn log, you fixed this in r4633 | mdboom | 2007-12-05 14:28:28 -0600 (Wed, 05 Dec 2007) | 2 lines Fix

Re: [Matplotlib-users] Repeated calls to set_text using TeX formatting results in RuntimeError

2007-12-11 Thread Michael Droettboom
This bug is that many font files were being opened than needed, but they were still all getting closed. Much earlier, someone else fixed a bug where they weren't getting closed at all. http://sourceforge.net/tracker/index.php?func=detailaid=1695171group_id=80706atid=560720

Re: [Matplotlib-users] Repeated calls to set_text using TeX formatting results in RuntimeError

2007-12-11 Thread Brian.Boonstra
I believe this is a known bug with 0.90.1. Are you able to run 0.91.1? I just upgraded and checked -- the bug still exists in 0.91.1. I'm afraid I don't know whether it has been fixed by r4633 or not. Best, Brian [EMAIL PROTECTED] wrote: I'm doing a parameter fitting exercise, and

Re: [Matplotlib-users] Repeated calls to set_text using TeX formatting results in RuntimeError

2007-12-11 Thread Michael Droettboom
The patch for r4633 is pretty simple, so you could test it without needing to check out from SVN or build your own matplotlib etc. Open the file font_manager.py, which should live in %PYTHONPATH%/Lib/site-packages/matplotlib. Around line 681, you'll find the function: def

Re: [Matplotlib-users] Repeated calls to set_text using TeX formatting results in RuntimeError

2007-12-11 Thread Brian.Boonstra
Michael et al. The r4633 patch fixes the problem indeed. Thanks for your help!! Brian -Original Message- From: Michael Droettboom [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 11, 2007 10:03 AM To: Boonstra, Brian Cc: matplotlib-users@lists.sourceforge.net Subject: Re:

Re: [Matplotlib-users] Repeated calls to set_text using TeX formatting results in RuntimeError

2007-12-11 Thread Michael Droettboom
Great. The forthcoming 0.91.2 release sounds like it will be very important to Windows users. Apologies for introducing this bug in the first place! Cheers, Mike [EMAIL PROTECTED] wrote: Michael et al. The r4633 patch fixes the problem indeed. Thanks for your help!! Brian

[Matplotlib-users] re ndered objects (esp. SVG)

2007-12-11 Thread bplewe
[Fairly new at matplotlib, but very happy with it so far] Is it possible to retrieve images rendered by one of the backends as an object, rather than just saving to a file? Specifically, I need to render graphs to SVG code, that I can turn into a DOM object for further manipulation. I can

[Matplotlib-users] Scientific visualisation techniques

2007-12-11 Thread adamski246
I am part of a team trying to create interactive GUI scientific visualisations and would like some advice regarding the best way to proceed. We are trying to output mathematical functions (Fourier transforms, ray tracing etc.) in graphical form and have been very impressed with the ease

[Matplotlib-users] problems with 0.91.1 and python 2.5.1

2007-12-11 Thread Thorsten.G
Hello i' am an newbie in matplotlib and python! I've installed python 2.5.1 + numpy 1.0.4 + numarray 1.5.2 but have many problems ! I've written an easy plot script import matplotlib import pylab from pylab import arange,sin,pi,plot,xlabel,ylabel,title,grid,show,axis ymax =

Re: [Matplotlib-users] Scientific visualisation techniques

2007-12-11 Thread John Hunter
On Dec 7, 2007 10:38 AM, adamski246 [EMAIL PROTECTED] wrote: Does anyone know of (or has examples of) Matplotlib applications controlled by a GUI or must I return to my Java roots where I can easily solve all GUI problems but do not have access to a powerful maths library such as Matplotlib.

Re: [Matplotlib-users] How to show matplotlib.image ?

2007-12-11 Thread Ken McIvor
On Dec 5, 2007, at 11:58 AM, Christopher Barker wrote: or use wxmpl: http://agni.phys.iit.edu/~kmcivor/wxmpl/ By the way, couldn't that be distributed with Matplotlib? Maybe in toolkits, if not the main distro. I'd be all for having wxmpl distributed as part of the matplotlib toolkits. I

Re: [Matplotlib-users] problems with 0.91.1 and python 2.5.1

2007-12-11 Thread Michael Droettboom
I think the problem might be related to using numarray and not numpy. matplotlib is not heavily tested (if at all) on anything but numpy anymore. See this from your output log: D:\Program Files\Python-2.5.1\Lib\site-packages\matplotlib\numerix\__init__.py:65: DeprecationWarning: numarray use

Re: [Matplotlib-users] re ndered objects (esp. SVG)

2007-12-11 Thread Michael Droettboom
[I only seem to be getting this message from the list today, despite the timestamp of 2007-12-05. Sorry for the delay.] As of matplotlib 0.91.1, savefig() supports saving to a file-like object for most backends (excluding Gtk and Wx). You can pass in a StringIO object to savefig for

Re: [Matplotlib-users] Scientific visualisation techniques

2007-12-11 Thread David.Goldsmith
You say you tried wx but don't mention wxmpl explicitly - did you try wxmpl (http://agni.phys.iit.edu/~kmcivor/wxmpl/)? DG adamski246 wrote: I am part of a team trying to create interactive GUI scientific visualisations and would like some advice regarding the best way to proceed. We are

Re: [Matplotlib-users] Scientific visualisation techniques

2007-12-11 Thread Christopher Barker
David.Goldsmith wrote: You say you tried wx but don't mention wxmpl explicitly - did you try wxmpl (http://agni.phys.iit.edu/~kmcivor/wxmpl/)? good choice -- the other is to follow the embedded_in_*** examples -- where are they? A quick googling didn't find them! all attempts to control or

[Matplotlib-users] installation problem/crash

2007-12-11 Thread Ryan Krauss
I am trying to help a student get started with Python/Scipy/Numpy/Matplotlib in windows. On one of his machines, everything seems to install correctly, we can call figure(1) without a problem, and plotting is fine until we try the show() command. Then python crashes without much in the way of

Re: [Matplotlib-users] re ndered objects (esp. SVG)

2007-12-11 Thread Michael Droettboom
I should add that in 0.91.1, you'll be hit by this bug: http://sourceforge.net/mailarchive/message.php?msg_name=475ED00A.400%40stsci.edu You can wait for 0.91.2, or patch your cbook.py as suggested by Brandon in the above thread. Cheers, Mike Michael Droettboom wrote: [I only seem to be

Re: [Matplotlib-users] installation problem/crash

2007-12-11 Thread John Hunter
On Dec 11, 2007 1:01 PM, Ryan Krauss [EMAIL PROTECTED] wrote: I am trying to help a student get started with Python/Scipy/Numpy/Matplotlib in windows. On one of his machines, everything seems to install correctly, we can call figure(1) without a problem, and plotting is fine until we try the

Re: [Matplotlib-users] installation problem/crash

2007-12-11 Thread Fernando Perez
On Dec 11, 2007 12:01 PM, Ryan Krauss [EMAIL PROTECTED] wrote: I am trying to help a student get started with Python/Scipy/Numpy/Matplotlib in windows. On one of his machines, everything seems to install correctly, we can call figure(1) without a problem, and plotting is fine until we try the

Re: [Matplotlib-users] installation problem/crash

2007-12-11 Thread Ryan Krauss
Pretty sure it's a newer chip, but I will find out. On Dec 11, 2007 2:06 PM, Fernando Perez [EMAIL PROTECTED] wrote: On Dec 11, 2007 12:01 PM, Ryan Krauss [EMAIL PROTECTED] wrote: I am trying to help a student get started with Python/Scipy/Numpy/Matplotlib in windows. On one of his

[Matplotlib-users] can matplotlib do this?

2007-12-11 Thread mbauer
Matplotlib users, I looking to tap your wealth of ideas and experience to help solve a problem I'm working on. The problem: I have a series of 2d scalar arrays representing a fixed width/height lon/lat box centered on an arbitrary lon/lat. I need to average these composites on a common

Re: [Matplotlib-users] installation problem/crash

2007-12-11 Thread Ryan Krauss
Fernando was right on. Here is his response to me: Laptop - Ok Windows XP Professional, Service Pack 2 AMD Athlon 64 3400+ (ClawHammer) 1.67 GHz, 768 MB of RAM Chipset: SiS 755/755FX Southbridge: SiS LPC Bridge Instructions: MMX (+), 3DNow! (+), SSE, SSE2, x86-64 Machine 1 - Crashes Windows

Re: [Matplotlib-users] CocoaAgg backend status?

2007-12-11 Thread Barry Wark
Michael, I'm sorry. I just realized I hadn't replied to you yet; sorry for the delay. John also pointed us to the transforms branch and that's where we'll start. Thanks! There's no real advantage to CoreAnimation per se (except eye candy), but going native for rendering would allow mpl to

[Matplotlib-users] scipy on XP in VMWare Workstation

2007-12-11 Thread William Purcell
I am trying to run scipy in XP on VMWare Workstation. The host OS is Ubuntu. When I attempt to launch scipy I get the error: C:\Documents and Settings\AdministratorC:\Python25\python.exe C:\Python25\scrip