Re: [Matplotlib-users] caxis in matplotlib / basemap

2007-05-10 Thread Eric Firing
Maybe someone already answered, but if not, the answer is the pylab clim() function, or directly using the image or collection set_clim() method. Simple example for you to try using the ipython -pylab environment: contourf(rand(20,30)) clim(-1, 2) Eric Sebastian Krieger wrote: > Hi everybody!

Re: [Matplotlib-users] SVG vs PNG

2007-05-10 Thread Eric Firing
[EMAIL PROTECTED] wrote: > Hi, list: > > In my quest to create MPL plots for insertion into Word documents, I > tried post-script (doesn't work well - Word doesn't like the ps file > created by MPL), pdf (can't create more then 8 plots per job and can > not import into word), png (works but each p

Re: [Matplotlib-users] SVG vs PNG

2007-05-10 Thread Alan G Isaac
On Thu, 10 May 2007 15:51:09 -0700 (PDT) [EMAIL PROTECTED] apparently wrote: > png (works but each plot needs to be magified manually > before saving) Use the figsize argument. Cheers, Alan Isaac - This SF.net email is

Re: [Matplotlib-users] problem with saving eps and ps with GTKAgg backend (and current head of SVN)

2007-05-10 Thread Matthew Auger
I was having the same problem, but the recent xpdf thread pointed me to a/the solution. I was able to successfully run your script by outputting as eps instead of ps (which produced truncated output, as you were experiencing). Matt On Thu, 10 May 2007, Johann Cohen-Tanugi wrote: > Well, matp

[Matplotlib-users] SVG vs PNG

2007-05-10 Thread kc106_2005-matplotlib
Hi, list: In my quest to create MPL plots for insertion into Word documents, I tried post-script (doesn't work well - Word doesn't like the ps file created by MPL), pdf (can't create more then 8 plots per job and can not import into word), png (works but each plot needs to be magified manually

Re: [Matplotlib-users] xpdf distiller: page doesn't fit graph

2007-05-10 Thread Troels Kofoed Jacobsen
It is working great if I just use .eps Thanks guys.,, On Thu, May 10, 2007 at 03:22:20PM -0400, Darren Dale wrote: > On Thursday 10 May 2007 02:39:51 pm Troels Kofoed Jacobsen wrote: > > I want to make some good vector graphs to include in LaTeX. > > > > I use > > backend : PS > > ps.pa

[Matplotlib-users] numpy version of Interactive Data Analysis tutorial available

2007-05-10 Thread Perry Greenfield
I have updated the "Using Python for Interactive Data Analysis" tutorial to use numpy instead of numarray (finally!). There are further improvements I would like to make in its organization and formatting (in the process including suggestions others have made to that end), but I'd rather ge

Re: [Matplotlib-users] xpdf distiller: page doesn't fit graph

2007-05-10 Thread Darren Dale
On Thursday 10 May 2007 02:39:51 pm Troels Kofoed Jacobsen wrote: > I want to make some good vector graphs to include in LaTeX. > > I use > backend : PS > ps.papersize : auto > ps.usedistiller : xpdf > > My problem is that when i export the graphs [savefig('test')] the > exported g

Re: [Matplotlib-users] xpdf distiller: page doesn't fit graph

2007-05-10 Thread Alan G Isaac
On Thu, 10 May 2007, Troels Kofoed Jacobsen apparently wrote: > My problem is that when i export the graphs > [savefig('test')] savefig('test.eps') always works fine for me... Cheers, Alan Isaac - This SF.net email is

[Matplotlib-users] xpdf distiller: page doesn't fit graph

2007-05-10 Thread Troels Kofoed Jacobsen
I want to make some good vector graphs to include in LaTeX. I use backend : PS ps.papersize : auto ps.usedistiller : xpdf My problem is that when i export the graphs [savefig('test')] the exported graph is in the middle of a large page, which isn't suitable for inclusion in L

Re: [Matplotlib-users] plotting wind-speed time series

2007-05-10 Thread Lionel Roubeyrie
Good news. When the next "production" version will be released? Le Jeudi 10 Mai 2007 15:47, John Hunter a écrit : > I recently added legend support for polar to matplotlib svn. > > JDH > > - > This SF.net email is sponsored b

Re: [Matplotlib-users] problem with saving eps and ps with GTKAgg backend (and current head of SVN)

2007-05-10 Thread Johann Cohen-Tanugi
Well, matplotlib starts with a canvas bigger than my screen (vertically only) but in the end it seems to resize it so everything fits in. I can see the whole drawing and the bottom toolbar. Again, saving in png or jpg works perfectly and of course I checked that gv was not cutting the graph

Re: [Matplotlib-users] DLL not found when importing pylab on Windows

2007-05-10 Thread Werner F. Bruhin
Paul, Paul Ray wrote: > > On May 10, 2007, at 11:05 AM, Werner F. Bruhin wrote: > >> Should you have a small matplotlib script which shows the problem >> I'll give it a try on my setup (XP or Vista with Python 2.5 and numpy. > > No need for a script. "import pylab" produces the error. No problem

Re: [Matplotlib-users] Reusing basemap instance

2007-05-10 Thread Simon Kammerer
I reuse a Basemap instance to reduce processing time. What I do is basically: 1. Remember all items I added to the map 2. Remove all items I don't want to keep I use a list for every category of items (contoursets, clabels, texts, ...), as the way to remove them is slightly different. Then I re

Re: [Matplotlib-users] DLL not found when importing pylab on Windows

2007-05-10 Thread Paul Ray
On May 10, 2007, at 11:05 AM, Werner F. Bruhin wrote: > Should you have a small matplotlib script which shows the problem > I'll give it a try on my setup (XP or Vista with Python 2.5 and numpy. No need for a script. "import pylab" produces the error. If you are using Windows XP, Python 2.5,

Re: [Matplotlib-users] DLL not found when importing pylab on Windows

2007-05-10 Thread Werner F. Bruhin
Hi Paul, Paul Ray wrote: > > On May 10, 2007, at 10:34 AM, Werner F. Bruhin wrote: > >> What backend are you using? >> >> If you use wxPython then as of 0.87.? something you need to either >> use wxPython 2.6 Unicode or rename the following file: > > I'm not 100% sure. We certainly didn't inten

Re: [Matplotlib-users] DLL not found when importing pylab on Windows

2007-05-10 Thread Paul Ray
On May 10, 2007, at 10:34 AM, Werner F. Bruhin wrote: > What backend are you using? > > If you use wxPython then as of 0.87.? something you need to either > use wxPython 2.6 Unicode or rename the following file: I'm not 100% sure. We certainly didn't intentionally use wxPython, since I don

Re: [Matplotlib-users] subplot, spy, title

2007-05-10 Thread John Hunter
On 5/10/07, Nils Wagner <[EMAIL PROTECTED]> wrote: > Hi all, > > How can I increase the distance between the title and the spy plot ? > > I have used > > figure(1) > subplot(121) > spy(M_bc) > title(r'$M_{red}$') > subplot(122) > title(r'$K_{red}$') > spy(K_bc) > You can set the "y" attribute of t

Re: [Matplotlib-users] DLL not found when importing pylab on Windows

2007-05-10 Thread Werner F. Bruhin
Hi Paul, Paul Ray wrote: > Hi, > > A colleague of mine uses Python on Windows. When he upgraded to > matplotlib 0.90 (from 0.82, I think) he started getting an import > error when importing pylab. We tried many combinations and the only > thing that fixed it was downgrading back to 0.82. >

[Matplotlib-users] DLL not found when importing pylab on Windows

2007-05-10 Thread Paul Ray
Hi, A colleague of mine uses Python on Windows. When he upgraded to matplotlib 0.90 (from 0.82, I think) he started getting an import error when importing pylab. We tried many combinations and the only thing that fixed it was downgrading back to 0.82. We tried: python2.4 and python2.5 num

Re: [Matplotlib-users] Reusing basemap instance

2007-05-10 Thread Jesper Larsen
On Tuesday 08 May 2007 20:55, Jeff Whitaker wrote: > Jesper: You might consider just deleting the figure elements that you > don't want to re-use (instead of figuring out everything you do want to > re-use). I have an axes instance on which I have plotted my map decorations (coastlines, meridian

Re: [Matplotlib-users] plotting wind-speed time series

2007-05-10 Thread John Hunter
On 5/10/07, Lionel Roubeyrie <[EMAIL PROTECTED]> wrote: > It's PyQt3, I hope using PyQt4 in a future release. I'm also going to make > some changes in the windfreq part, don't sure to keep missing values is good > for the computation. For the moment, my major problem is the legend, because > polar

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

2007-05-10 Thread Steve Lianoglou
Hi, > I noticed on your Web Lab website that you suggest to download the > Enthouhht edition. Although I suggest that to my students for class > as well, we are currently running into some problems as the latest > Enthought edition still includes an old numpy (version less than > 1.0). Som

Re: [Matplotlib-users] problem with saving eps and ps with GTKAgg backend (and current head of SVN)

2007-05-10 Thread Darren Dale
On Wednesday 09 May 2007 12:19:24 pm Johann Cohen-Tanugi wrote: > I am creating a "big" drawing ( figure(figsize=(16,20)) ), and when I > try to save it in eps/ps form, it mishandle the overall size and only > save a portion of the drawing. Saving in png or jpg works fine though. > Any idea? On my

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

2007-05-10 Thread Mark Bakker
I noticed on your Web Lab website that you suggest to download the Enthouhht edition. Although I suggest that to my students for class as well, we are currently running into some problems as the latest Enthought edition still includes an old numpy (version less than 1.0). Some important changes we