[Matplotlib-users] Limiting scalex/scaley to specific elements.

2009-04-09 Thread Michael McNeil Forbes
Is there a standard way to associate scalex/scaley information with individual plot elements? I would like to do the following: x = linspace(-1,1,100) y = sin(x) plot(x,y) plot(x,10*y,scaley=False) plot(x,2*y) and have it be equivalent to plotting instead in the order plot(x,y) plot(x,2*y) pl

Re: [Matplotlib-users] Computer specs for fast matplotlib and basemap processing

2009-04-09 Thread Anton Vasilescu
Thanks a lot Chris for the detailed answer. I had the same doubts about 64bits and multiple cores. I just found out about Gdal and yes, Jeff's grib tools seem to be exactly what I needed. I'll stay with a fast dual core and 32 bit os and I'll get a 1 rpm hdd. That should be more than enoug

Re: [Matplotlib-users] matplotlib._path failed on windows build for Python 2.6

2009-04-09 Thread Lorenzo Di Gregorio
Well, that's exactly the problem: I just can't load some DLLs! >>> import matplotlib._path Traceback (most recent call last): File "", line 1, in import matplotlib._path ImportError: DLL load failed: Die angegebene Prozedur wurde nicht gefunden. >>> import matplotlib._delaunay >>> import m

Re: [Matplotlib-users] preventing scaling view after updating plot

2009-04-09 Thread C M
On Thu, Apr 9, 2009 at 9:25 AM, Ryan May wrote: > On Thu, Apr 9, 2009 at 1:04 AM, C M wrote: >> >> > >> > I tried this, and it did stop autoscaling--but I do want y autoscaling. >> > What I want is y autoscaling but not y autoscaling (just setting xlims). >> > I tried adding either of these lines

Re: [Matplotlib-users] matplotlib._path failed on windows build for Python 2.6

2009-04-09 Thread Michael Droettboom
Can you send us the output of this Python session to help us debug? I'm curious what symbols *are* in there. >>> import matplotlib._path >>> dir(matplotlib._path) ['__doc__', '__file__', '__name__', 'affine_transform', 'clip_path_to_rect', 'convert_path_to_polygons', 'count_bboxes_overlappin

Re: [Matplotlib-users] Computer specs for fast matplotlib and basemap processing

2009-04-09 Thread Christopher Barker
Eric Firing wrote: >> The biggest bottleneck is happening because I'm unpacking grib files to csv >> files using Degrib in command line. That operation is usually around half an disk speed -- you might want to try SATA RAID 0 (striping) -- I"d get a good hardware vendor's advise in maximizing you

Re: [Matplotlib-users] preventing scaling view after updating plot

2009-04-09 Thread Ryan May
On Thu, Apr 9, 2009 at 1:04 AM, C M wrote: > > > > I tried this, and it did stop autoscaling--but I do want y autoscaling. > > What I want is y autoscaling but not y autoscaling (just setting xlims). > > I tried adding either of these lines right before or right after when I > plotted > > the hig

Re: [Matplotlib-users] Changing axis units, with imshow()

2009-04-09 Thread Andrew Straw
Ciarán Mooney wrote: > Hi, > > I am trying to plot an image with matplotlib and change the default axis > units. > > Using the cookbook recipe (import image with PIL, and use imshow() ). > I am able to get matplotlib to display the image, but the axis are > just the x and y pixel numbers. > > I'd

[Matplotlib-users] Coordinates of contour lines

2009-04-09 Thread Ewald Zietsman
Hi All, I need to use the coordinates of a contour line for further calculations. Is there a simple way to get the x,y coordinates from a contour object or otherwise? i.e. I have (x,y,z) coordinates and have created a contour map from these. I need the (x,y) coordinates of the contour line with v

Re: [Matplotlib-users] Computer specs for fast matplotlib and basemap processing

2009-04-09 Thread Jose Gómez-Dans
On Wednesday 08 April 2009 21:57:21 antonv wrote: > The biggest bottleneck is happening because I'm unpacking grib files to csv > files using Degrib in command line. That operation is usually around half > an hour using no more than 50% of the processor but it maxes out the memory > usage and it de

Re: [Matplotlib-users] ploting matrix data

2009-04-09 Thread Matthias Michler
Hi Bala, you may want to have a look at the gallery including many example pictures on http://matplotlib.sourceforge.net/gallery.html especially the follwing two examples might be of interest for you http://matplotlib.sourceforge.net/examples/pylab_examples/contourf_demo.html http://matplotlib.sou

[Matplotlib-users] Changing axis units, with imshow()

2009-04-09 Thread Ciarán Mooney
Hi, I am trying to plot an image with matplotlib and change the default axis units. Using the cookbook recipe (import image with PIL, and use imshow() ). I am able to get matplotlib to display the image, but the axis are just the x and y pixel numbers. I'd like to convert them to something else.

Re: [Matplotlib-users] matplotlib._path failed on windows build for Python 2.6

2009-04-09 Thread Lorenzo Di Gregorio
On Thu, Apr 9, 2009 at 7:06 AM, Andrew Straw wrote: > Lorenzo Di Gregorio wrote: > > Hello, > > > > I've tried to build matplotlib 0.98.5.2 for Python 2.6 under Windows > > (Win2k) using MinGW and win32_static. After a few fixes, the > > compilation and install appear to be ok, but I've got stuc

Re: [Matplotlib-users] ploting matrix data

2009-04-09 Thread Matthias Michler
Hi Bala, I added a small example showing up your matrix in order to have a running example, where you can specify your needs. In the program contourf could be replaced by contour or imshow - see help / docu / examples on the web The colormap can be specified with the kwarg "cmap" : e.g. pypl