Re: [Matplotlib-users] Mac OS X - Problem when saving figures in eps

2006-06-27 Thread Benoit Donnet
Hello John > I am 99% sure this is a font problem. matplotlib embeds the truetype Nice intuition. I didn't think about any font problem. I was expecting some configuration problem > font.serif : New Century Schoolbook, Century Schoolbook L, Utopia, > ITC Bookman, Bookman, Bitstr

[Matplotlib-users] How to remove the white space arround the graph?

2006-06-27 Thread Petar Marić
Hi, I was reading thought the docs but was unable to find a way to do the following: When I generate a graph and then save it to a file via savefig() call there is some white space arround the graph. How do I remove it Example graph: http://svn.petarmaric.com/playground/trunk/test.png Script sour

Re: [Matplotlib-users] .87.3 intall problems

2006-06-27 Thread Darren Dale
Hi Danny, On Tuesday 27 June 2006 13:38, danny shevitz wrote: > TkAgg... GTKAgg. What difference does a letter make. > That helped. I couldn't remember the windows backend. > > I still have a problem, but now it's the same if I import either > matplotlib or pylab: > > -

Re: [Matplotlib-users] Line plots and missing data

2006-06-27 Thread Tom Denniston
Thanks John and Darren. I think i'll use the nan trick for now but the masked array looks incredibly powerful. I'll take a look at the masked array demo. Thanks once again for your help and some really awesome plotting software! --Tom On 6/27/06, Darren Dale <[EMAIL PROTECTED]> wrote: > On T

Re: [Matplotlib-users] .87.3 intall problems

2006-06-27 Thread John Hunter
> "danny" == danny shevitz <[EMAIL PROTECTED]> writes: danny> TkAgg... GTKAgg. What difference does a letter make. That danny> helped. I couldn't remember the windows backend. danny> I still have a problem, but now it's the same if I import danny> either matplotlib or pylab:

Re: [Matplotlib-users] Line plots and missing data

2006-06-27 Thread Darren Dale
On Tuesday 27 June 2006 14:16, Tom Denniston wrote: > When you do a line scatter plot in excel and data is missing between > two observations excel doesn't connect those two observations with a > line. So what you see is a line with gaps where the data is missing. > Missing data is > defined as ha

Re: [Matplotlib-users] .87.3 intall problems

2006-06-27 Thread John Hunter
> "danny" == danny shevitz <[EMAIL PROTECTED]> writes: danny> thanks for all the help, it's working now. That wasn't even danny> too bad. FWIW, I did download the latest .matplotlibrc danny> file off the web at : danny> http://matplotlib.sourceforge.net/matplotlibrc dann

Re: [Matplotlib-users] .87.3 intall problems

2006-06-27 Thread Charlie Moad
> Charlie -- I thought we were setting the default backend to TkAgg for > win32 installs. and I thought that was settled by being hard coded into setup.py # line 287 if sys.platform=='win32': rc = dict(backend='TkAgg', numerix='Numeric') Danny, can you try deleting your .matplotlib folder an

Re: [Matplotlib-users] Line plots and missing data

2006-06-27 Thread John Hunter
> "Tom" == Tom Denniston <[EMAIL PROTECTED]> writes: Tom> When you do a line scatter plot in excel and data is missing Tom> between two observations excel doesn't connect those two Tom> observations with a line. So what you see is a line with Tom> gaps where the data is missin

Re: [Matplotlib-users] .87.3 intall problems

2006-06-27 Thread danny shevitz
thanks for all the help, it's working now. That wasn't even too bad. FWIW, I did download the latest .matplotlibrc file off the web at : http://matplotlib.sourceforge.net/matplotlibrc It is currently out of date as it contains: ### IMAGES image.aspect : free # free | preserve thank

[Matplotlib-users] Line plots and missing data

2006-06-27 Thread Tom Denniston
When you do a line scatter plot in excel and data is missing between two observations excel doesn't connect those two observations with a line. So what you see is a line with gaps where the data is missing. Missing data is defined as having x values but no y value or vice versa. Is there a good w

Re: [Matplotlib-users] .87.3 intall problems

2006-06-27 Thread danny shevitz
TkAgg... GTKAgg. What difference does a letter make. That helped. I couldn't remember the windows backend. I still have a problem, but now it's the same if I import either matplotlib or pylab: Python 2.4.3 (#69, Mar 29 2006

Re: [Matplotlib-users] .87.3 intall problems

2006-06-27 Thread John Hunter
> "Danny" == Danny Shevitz <[EMAIL PROTECTED]> writes: Danny> I have done a bunch of upgrading (python, scipy, numpy, Danny> ipython, matlotlib, pyreadline, ctypes) and of course Danny> things are broken. Everything seems to be ok except for Danny> matplotlib. I think it is a b

[Matplotlib-users] .87.3 intall problems

2006-06-27 Thread Danny Shevitz
I have done a bunch of upgrading (python, scipy, numpy, ipython, matlotlib, pyreadline, ctypes) and of course things are broken. Everything seems to be ok except for matplotlib. I think it is a backend problem, but I am nobody's expert on backends. I searched the archives for "gobject" but didn

Re: [Matplotlib-users] Mac OS X - Problem when saving figures in eps

2006-06-27 Thread John Hunter
> "Benoit" == Benoit Donnet <[EMAIL PROTECTED]> writes: Benoit> Hi, First of all, I'd like to thank matplotlib developers Benoit> for providing us this wonderful library. Benoit> It's been a while now I'm using matplotlib and I'm pretty Benoit> happy with it. I used to be a L

Re: [Matplotlib-users] tex-text problem

2006-06-27 Thread Darren Dale
Ok, usetex is going to do postscript processing in the user's current directory, but only on windows. On other platforms, the work is done in a temp directory. I've tested my changes on linux and windows, and committed them to svn as of 2528. Feedback appreciated. Darren On Tuesday 27 June 20

Re: [Matplotlib-users] Mac OS X - Problem when saving figures in eps

2006-06-27 Thread Samuel M. Smith
Ignore my last post. I forgot it was .ps that I had trouble with not .eps. I haven't tested either in while so maybe something is broken now. On 27 Jun, 2006, at 07:14, Benoit Donnet wrote: > Hi, > > First of all, I'd like to thank matplotlib developers for > providing us > this wonderful li

Re: [Matplotlib-users] Mac OS X - Problem when saving figures in eps

2006-06-27 Thread Samuel M. Smith
I have always had problems with the eps on a Mac. I save it as .ps and then use Distiller (or equivalent) to convert to eps. On 27 Jun, 2006, at 07:14, Benoit Donnet wrote: > Hi, > > First of all, I'd like to thank matplotlib developers for > providing us > this wonderful library. > > It's

Re: [Matplotlib-users] tex-text problem

2006-06-27 Thread Darren Dale
On Tuesday 27 June 2006 09:14, Jouni K Seppanen wrote: > Darren Dale <[EMAIL PROTECTED]> writes: > > The problem is that on windows, the TEMP environment variable is > > something like 'C:\\Documents and Settings\\Darren\\Local > > Settings\\Temp' or 'C:\\DOCUME~1\\Darren\\LOCALS~1\\TEMP', and > >

Re: [Matplotlib-users] tex-text problem

2006-06-27 Thread Jouni K Seppanen
Darren Dale <[EMAIL PROTECTED]> writes: > The problem is that on windows, the TEMP environment variable is > something like 'C:\\Documents and Settings\\Darren\\Local > Settings\\Temp' or 'C:\\DOCUME~1\\Darren\\LOCALS~1\\TEMP', and > \includegraphics is not able to deal with filenames that have sp

[Matplotlib-users] Mac OS X - Problem when saving figures in eps

2006-06-27 Thread Benoit Donnet
Hi, First of all, I'd like to thank matplotlib developers for providing us this wonderful library. It's been a while now I'm using matplotlib and I'm pretty happy with it. I used to be a Linux user. Recently, I moved to Mac (a macbook pro, to be precise). I succeed to install matplotlib.

Re: [Matplotlib-users] no BoundingBox

2006-06-27 Thread Nils Wagner
Nils Wagner wrote: > Hi all, > > I have generated some figures with matplotlib (savefig('test.png') > savefig(test.jpg')). > > If I try to include them via > > \includegraphics[width=8cm]{test.jpg} > > I get > > LaTeX Error: Cannot determine size of graphic in test.jpg (no BoundingBox). > > I am u

Re: [Matplotlib-users] no BoundingBox

2006-06-27 Thread Nils Wagner
PGM wrote: > Nils, > That's far more a Latex question than a matplotlib one. > Short answer: you can't fix the BBox from a JPEG, there's none ! > >From what I remmbr from my LaTeX years, you need to transform the jpeg to a > format LaTeX can understand, viz '.ps' or '.eps' > Check > http://www2.e

Re: [Matplotlib-users] no BoundingBox

2006-06-27 Thread PGM
Nils, That's far more a Latex question than a matplotlib one. Short answer: you can't fix the BBox from a JPEG, there's none ! >From what I remmbr from my LaTeX years, you need to transform the jpeg to a format LaTeX can understand, viz '.ps' or '.eps' Check http://www2.eng.cam.ac.uk/~pmg26/hpage

Re: [Matplotlib-users] tex-text problem

2006-06-27 Thread Darren Dale
I have a little time and am trying to fix this bug. Wolfgang, would you try running the following: import os from tempfile import gettempdir os.system('cd %s & latex -help'% gettempdir()) If that doesnt work, than I need to pass an absolute path/eps_filename to \includegraphics. The problem is

[Matplotlib-users] no BoundingBox

2006-06-27 Thread Nils Wagner
Hi all, I have generated some figures with matplotlib (savefig('test.png') savefig(test.jpg')). If I try to include them via \includegraphics[width=8cm]{test.jpg} I get LaTeX Error: Cannot determine size of graphic in test.jpg (no BoundingBox). I am using latest svn versions of numpy/scipy a

[Matplotlib-users] scatter and TypeError: unsupported operand type(s) for *: 'numpy.ndarray' and 'float'

2006-06-27 Thread Nils Wagner
Hi all, Is this a bug ? >>> scatter(h.real,h.imag) >>> show() Traceback (most recent call last): File "/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_gtk.py", line 284, in expose_event self._render_figure(self._pixmap, w, h) File "/usr/lib64/python2.4/site-packages/matplo