Re: [Matplotlib-users] latex problem

2007-05-11 Thread Michele Mazzucco
Yes, because dvipng - version works fine. On 5/11/07, Darren Dale <[EMAIL PROTECTED]> wrote: > Is dvipng on your path? > > On Friday 11 May 2007 05:16:04 pm Michele Mazzucco wrote: > > Hi all, > > > > I'm running matplotlib on Mac OS X and I've set text.usetex to True in > > matplotlibrc, but if I

Re: [Matplotlib-users] SVG vs PNG

2007-05-11 Thread Matt Newville
> All I want is to: a) Insert all of the plots I create with MPL onto a Word > document. If you're fortunate enough to be using the wx backend, there is a Copy_to_Clipboard() method which works great: In a wx App, Ctrl-C can easily be bound to copy the figure to the clipboard, then paste it int

Re: [Matplotlib-users] using different font families with LaTeX-generated text

2007-05-11 Thread Darren Dale
On Friday 11 May 2007 12:12:37 pm Lev Givon wrote: > Setting the font family with matplotlib.rc (or in my > .matplotlib/matplotlibrc file) doesn't seem to have any effect on the > font used to generate text when the usetex setting is enabled. This > seems to imply that the fonts I have listed in th

Re: [Matplotlib-users] latex problem

2007-05-11 Thread Darren Dale
Is dvipng on your path? On Friday 11 May 2007 05:16:04 pm Michele Mazzucco wrote: > Hi all, > > I'm running matplotlib on Mac OS X and I've set text.usetex to True in > matplotlibrc, but if I try to run the tex_demo I get the error shown > below. If I'm right it's a problem with dvipng: > > dvipng

[Matplotlib-users] latex problem

2007-05-11 Thread Michele Mazzucco
Hi all, I'm running matplotlib on Mac OS X and I've set text.usetex to True in matplotlibrc, but if I try to run the tex_demo I get the error shown below. If I'm right it's a problem with dvipng: dvipng -version This is dvipng 1.6 Copyright 2002-2005 Jan-Ake Larsson dvipng 1.6 kpathsea version 3.

Re: [Matplotlib-users] SVG vs PNG

2007-05-11 Thread Fernando Perez
On 5/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Bingo! My prayer appears to have been answered. > > inkscape has no trouble reading the .svg files created by MPL, and Word has > no trouble reading the .eps files created by inkscape. So, at least I can > use it to preserve the vector

[Matplotlib-users] This is just so perfect! (was: Re: SVG vs PNG)

2007-05-11 Thread kc106_2005-matplotlib
Sorry. Just discover that saving the file in emf format under Inkscape and then import into Word works even better. The eps engine in Word is really bad. Hope that this info is helpful to others who are stuck in an Office world like me. > -Original Message- > From: [EMAIL PROTECTED]

[Matplotlib-users] This is just so perfect! (was: Re: SVG vs PNG)

2007-05-11 Thread kc106_2005-matplotlib
This is simply too good to be true. I played with manupulating MPL plots using Inkscape and man, somebody ought to include this in the MPL FAQ. I can move everything around by elements, touch-up or remove things I don't want, scale it, rotate it, you name it. And then I can save the file in

Re: [Matplotlib-users] SVG vs PNG

2007-05-11 Thread kc106_2005-matplotlib
Actually, Gimp is the problem. It's obvious they don't have a very good rendering engine. The plots looks very good under Inkscape. > The quality of the svg plot depends in large plot on the svg renderer > -- perhaps word doesn't do a good job rendering SVG? The > matplotlib PNG files look

Re: [Matplotlib-users] ylabel & sub figures obtained from axes

2007-05-11 Thread Michele Mazzucco
I've sorted it out. Thanks John. Michele On 5/11/07, Michele Mazzucco <[EMAIL PROTECTED]> wrote: > John, > > thanks for your reply. Unfortunately it does not work for Axes (at > least for me). > I've got 3 axes (like the finance sample) and the ylabel appears only > for the last one and only if I

Re: [Matplotlib-users] SVG vs PNG

2007-05-11 Thread kc106_2005-matplotlib
> > inkscape has no trouble reading the .svg files created by MPL, and > > Word has no trouble reading the .eps files created by inkscape. > > hmm. I wonder what it is about MPL's .eps files that Word > doesn't like. > > > Bug in MPL or Word?? Most likely Word. It's very picky. I have .eps

Re: [Matplotlib-users] SVG vs PNG

2007-05-11 Thread Christopher Barker
> inkscape has no trouble reading the .svg files created by MPL, and > Word has no trouble reading the .eps files created by inkscape. hmm. I wonder what it is about MPL's .eps files that Word doesn't like. Bug in MPL or Word?? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Res

Re: [Matplotlib-users] SVG vs PNG

2007-05-11 Thread kc106_2005-matplotlib
Yes, that's what I've been forced to do. The problem with that is that it forces you to fix the size of the figures in your paper. When I reformat things around in subsequent revisions, I have to go back and recreate the figures - if the spacing changes. I would much rather retaining the ab

Re: [Matplotlib-users] SVG vs PNG

2007-05-11 Thread kc106_2005-matplotlib
Bingo! My prayer appears to have been answered. inkscape has no trouble reading the .svg files created by MPL, and Word has no trouble reading the .eps files created by inkscape. So, at least I can use it to preserve the vectors. Too bad inkscape doesn't read .eps directly (complaining...co

Re: [Matplotlib-users] ylabel & sub figures obtained from axes

2007-05-11 Thread Michele Mazzucco
John, thanks for your reply. Unfortunately it does not work for Axes (at least for me). I've got 3 axes (like the finance sample) and the ylabel appears only for the last one and only if I use ylabel(...) (yes, I'm using ax1.set_ylabel, ax2.set_yabel and ax3.set_ylabel) Any idea? Michele On 5/11

Re: [Matplotlib-users] SVG vs PNG

2007-05-11 Thread John Hunter
On 5/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > While the svg files are much smaller then the cooresponding png file (yes, and > scalable), I am surprised that the quality of the plot doesn't seem to be > that much > better (seem like about the same as compared to a corresponding png f

Re: [Matplotlib-users] SVG vs PNG

2007-05-11 Thread Andy.Henshaw
[EMAIL PROTECTED] wrote >> >> On Fri, 11 May 2007, [EMAIL PROTECTED] apparently wrote: >> > All I want is to: a) Insert all of the plots I create with MPL onto >> > a Word document. >> >> This part should be achievable with PNG. >> Just set the figsize. >> I have not had problems... >> > >Corr

Re: [Matplotlib-users] SVG vs PNG

2007-05-11 Thread kc106_2005-matplotlib
> > On Fri, 11 May 2007, [EMAIL PROTECTED] > apparently wrote: > > All I want is to: a) Insert all of the plots I create with > > MPL onto a Word document. > > This part should be achievable with PNG. > Just set the figsize. > I have not had problems... > Correct. I am doing that right now.

Re: [Matplotlib-users] SVG vs PNG

2007-05-11 Thread Alan G Isaac
On Fri, 11 May 2007, [EMAIL PROTECTED] apparently wrote: > All I want is to: a) Insert all of the plots I create with > MPL onto a Word document. This part should be achievable with PNG. Just set the figsize. I have not had problems... > b) Be able to cut and paste part of a MPL figure and >

Re: [Matplotlib-users] SVG vs PNG

2007-05-11 Thread kc106_2005-matplotlib
Chris, All I want is to: a) Insert all of the plots I create with MPL onto a Word document. As I said before, my version of Word does not recognize the EPS or PS format created by MPL. I am not blaiming MPL. I am just not willing to send Redmond money to see if their later version does the

Re: [Matplotlib-users] SVG vs PNG

2007-05-11 Thread Fernando Perez
On 5/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Thanks everybody for the explanation of svg in Gimp. That makes sense. Is > there any vector based program that does what Gimp does? Try inkscape. I've used it successfully for simple things, though I've never tried to handle a MPL SVG

Re: [Matplotlib-users] freetypelib problem scipy superpack matplotlib

2007-05-11 Thread Christopher Fonnesbeck
On 5/4/07, Christopher Barker <[EMAIL PROTECTED]> wrote: Samuel M. Smith wrote: > I did not have this problem with the matplotlib on > http://pythonmac.org/packages/py25-fat/dmg/matplotlib-0.90.0-py2.5-macosx10.4-2007-02-20.dmg That one was probably built with a statically linked freetype, as

Re: [Matplotlib-users] SVG vs PNG

2007-05-11 Thread kc106_2005-matplotlib
Thanks everybody for the explanation of svg in Gimp. That makes sense. Is there any vector based program that does what Gimp does? > Did you try eps rather than ps? > > Eric Yes, I tried eps. Word won't recognize that neither. As to the EMF format, I downloaded the package and attempted t

Re: [Matplotlib-users] matplolib equivalent of gnuplot's impulse

2007-05-11 Thread Antonino Ingargiola
2007/5/11, John Hunter <[EMAIL PROTECTED]>: > On 5/3/07, Emmanuel <[EMAIL PROTECTED]> wrote: > > With gnuplot one can do a plot like that : > > > > http://www.deqnotes.net/gnuplot/images/impulses.png > > > > It is using option "with impulse". > > Is there an equivalent in matplotlib? > > > In [5]:

Re: [Matplotlib-users] matplolib equivalent of gnuplot's impulse

2007-05-11 Thread John Hunter
On 5/3/07, Emmanuel <[EMAIL PROTECTED]> wrote: > With gnuplot one can do a plot like that : > > http://www.deqnotes.net/gnuplot/images/impulses.png > > It is using option "with impulse". > Is there an equivalent in matplotlib? In [5]: t = arange(0.0, 2.0, 0.05) In [6]: s = sin(2*pi*t) In [7]:

Re: [Matplotlib-users] use of enthought Python for matplotlib/numpy

2007-05-11 Thread Robert Kern
Giorgio Luciano wrote: > I would add one box of donuts, since I'm trying to make my own > distribution with numpy/scipy/matplotlib but with no success. > and the problem is the same is for a classroom ;) If anyone knows also a > portable distribution with this package I will add extra donuts ;)

[Matplotlib-users] Fwd: matplolib equivalent of gnuplot's impulse

2007-05-11 Thread Antonino Ingargiola
Fowarding to the list ... -- Forwarded message -- From: Antonino Ingargiola <[EMAIL PROTECTED]> Date: 4-mag-2007 11.12 Subject: Re: [Matplotlib-users] matplolib equivalent of gnuplot's impulse To: Emmanuel <[EMAIL PROTECTED]> Hi, On 5/3/07, Emmanuel <[EMAIL PROTECTED]> wrote: >

Re: [Matplotlib-users] fiitting data

2007-05-11 Thread John Hunter
On 5/9/07, darkside <[EMAIL PROTECTED]> wrote: > Hello everyone: > My question is not only about matplotlib, but I wonder if I can do what I > want with some matplotlib subroutine, instead of the one for scipy. > I'm new using scipy, so I'm sorry if any of my questions are silly. scipy is your be

Re: [Matplotlib-users] ylabel & sub figures obtained from axes

2007-05-11 Thread John Hunter
On 5/11/07, Michele Mazzucco <[EMAIL PROTECTED]> wrote: > Hi all, > > when using subplot is very easy to plot an ylabel for each subplot > (see http://matplotlib.sourceforge.net/screenshots/subplot_demo_large.png > for example), however I have not found any sample to accomplish the > same goal when

[Matplotlib-users] using different font families with LaTeX-generated text

2007-05-11 Thread Lev Givon
Setting the font family with matplotlib.rc (or in my .matplotlib/matplotlibrc file) doesn't seem to have any effect on the font used to generate text when the usetex setting is enabled. This seems to imply that the fonts I have listed in the font.serif, font.sans-serif, and font.monospace settings

[Matplotlib-users] ylabel & sub figures obtained from axes

2007-05-11 Thread Michele Mazzucco
Hi all, when using subplot is very easy to plot an ylabel for each subplot (see http://matplotlib.sourceforge.net/screenshots/subplot_demo_large.png for example), however I have not found any sample to accomplish the same goal when using sub-figures obtained as ax1 = axes(...) like http://matplot

Re: [Matplotlib-users] Reusing basemap instance

2007-05-11 Thread Jesper Larsen
On Thursday 10 May 2007 17:12, Simon Kammerer wrote: > I use a list for every category of items (contoursets, clabels, texts, > ...), as the way to remove them is slightly different. > > Then I remove them from the map axes: > > for contourset in contoursets_to_remove: > for coll in contourset.co

Re: [Matplotlib-users] use of enthought Python for matplotlib/numpy

2007-05-11 Thread Mark Bakker
I use Python/numpy/mpl/scipy to teach Computational methods for scientists and engineers. Yeah, a mouthfull, but that's what it is. We mainly solve problems of heat flow, groundwater flow, and diffusion-type equations in the class. Both fun analytic solutions and finite difference solutions. So th

Re: [Matplotlib-users] SVG vs PNG

2007-05-11 Thread Jouni K . Seppänen
Zack <[EMAIL PROTECTED]> writes: >> When you open the svg in gimp, it is being rendered as pixels; [...] > > Right. SVG in Matplotlib is NOT vector format and it has no sense to > use it instead of PNG or any others. No, the svg produced by matplotlib is a vector format. (Just look at a matplotli

Re: [Matplotlib-users] SVG vs PNG

2007-05-11 Thread Zack
Hi, On 11 May 2007, Eric Firing wrote: > When you open the svg in gimp, it is being rendered as pixels; from that > point on, it is the same as if you had made a png at the same > resolution, except that there are subtle differences in positioning and > probably antialiasing between externally re

Re: [Matplotlib-users] use of enthought Python for matplotlib/numpy

2007-05-11 Thread Giorgio Luciano
I would add one box of donuts, since I'm trying to make my own distribution with numpy/scipy/matplotlib but with no success. and the problem is the same is for a classroom ;) If anyone knows also a portable distribution with this package I will add extra donuts ;) ---