[Matplotlib-users] Crashing with a St8bad_cast

2007-07-26 Thread Steve Lianoglou
Hi all, I just upgraded to the latest svn for matlotlib and she's blowing up on me with this error: terminate called after throwing an instance of 'std::bad_cast' what(): St8bad_cast Abort trap It happens when I fire up ipython w/ -pylab ... (and some other non specified code in one of m

Re: [Matplotlib-users] pdf saving on OS X

2007-07-26 Thread Brian Blais
On Jul 26, 2007, at Jul 26:4:49 PM, Jouni K. Seppänen wrote: Brian Blais <[EMAIL PROTECTED]> writes: and it works with pylab. But, if I use matplotlib.Figure directly in an app, and then call: myfig.savefig('blah.pdf') it saves it as 'blah.pdf.jpg', a jpeg file. Sounds like you are using

[Matplotlib-users] Matplotlib for 3D Plots

2007-07-26 Thread Lorenzo Isella
Dear All, I would like to try out matplotlib for some basic 3D plotting. First of all, is matplotlib suitable for that? I am asking since I read on the website that matplotlib's selling point is 2D plotting. What I would like to plot should be relatively easy: say that I have a distribution (e.g.

Re: [Matplotlib-users] Matplotlib for 3D Plots

2007-07-26 Thread Eric Firing
3D plotting in mpl should be considered, at best, to be experimental and unsupported. Some interesting and fairly extensive capabilities were added but have not been consistently maintained. Mpl is at heart 2D. Eric Lorenzo Isella wrote: > Dear All, > I would like to try out matplotlib for so

Re: [Matplotlib-users] Latex, Labels and PDF

2007-07-26 Thread Jouni K . Seppänen
John T Whelan <[EMAIL PROTECTED]> writes: > Shouldn't > r"some label text ($\mu V$)" > work? It doesn't work in any released version, but it seems that Michael Droettboom's recent mathtext improvements include this (and much more). -- Jouni K. Seppänen http://www.iki.fi/jks --

Re: [Matplotlib-users] Saving Images as .pdf files

2007-07-26 Thread Jouni K . Seppänen
"Jonathan Makem" <[EMAIL PROTECTED]> writes: > However, if I try: > savefig('name.pdf') > The program crashes. Is there anyway of solving this problem? You'll need to provide more information than "the program crashes", but if you're seeing the cp1252 bug, you'll need to use the bleeding-edge svn

Re: [Matplotlib-users] pdf saving on OS X

2007-07-26 Thread Jouni K . Seppänen
Brian Blais <[EMAIL PROTECTED]> writes: > and it works with pylab. But, if I use matplotlib.Figure directly in > an app, and then call: > myfig.savefig('blah.pdf') it saves it as 'blah.pdf.jpg', a jpeg file. Sounds like you are using a backend other than the pdf one. Can you write up a complete

[Matplotlib-users] Compiling matplotlib for RHEL 4 x86_64 machine

2007-07-26 Thread Berit Hinnemann
Hi, I am installing matplotlib on a RedHat x86_64 machine, running Python 2.3.4. I could not find any binary for it on sourceforge and thus I have to compile it. Has somebody tried this and are there some pitfalls? Also, what does the setup utility peak do? Has anybody gotten it to work with 64b

[Matplotlib-users] Saving Images as .pdf files

2007-07-26 Thread Jonathan Makem
Hi, I'm havind difficulty plotting saving pylab images in pdf format. At the moment, they are saved as .png files by default using: savefig('name',dpi=300) However, if I try: savefig('name.pdf') The program crashes. Is there anyway of solving this problem? Regards, Jony--

[Matplotlib-users] pdf saving on OS X

2007-07-26 Thread Brian Blais
Hello I am having trouble saving a figure to pdf on Mac OS X (matplotlib version 0.90.1). I applied the patch for pylab, here: http://www.mail-archive.com/[EMAIL PROTECTED]/ msg00940.html and it works with pylab. But, if I use matplotlib.Figure directly in an app, and then call: myfi