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

2009-04-08 Thread C M
> > 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 highlighted point: Just to be clearer: What I want is t

[Matplotlib-users] preventing scaling view after updating plot

2009-04-08 Thread C M
(mpl 0.98.5 OO embedded in wx) Hi, I'm trying to highlight a picked datapoint, such as is shown in this thread: http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg05580.html As John suggested there, I get the index of the picked point, and then plot a marker on that point. I

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

2009-04-08 Thread Andrew Straw
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 stuck at > importing matplotlib._path (see transcript below). > Any

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

2009-04-08 Thread Lorenzo Di Gregorio
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 stuck at importing matplotlib._path (see transcript below). Any suggestions on what is going wrong and how

Re: [Matplotlib-users] Creating an xaxis with minutes

2009-04-08 Thread Brian Zambrano
On Wed, Apr 8, 2009 at 7:33 AM, Ryan May wrote: > > import matplotlib.ticker as mticker > > def minsec(sec, unused): > minutes = sec // 60 > sec = sec - minutes * 60 > return '%d:%02d' % (minutes, sec) > > locator = mticker.MultipleLocator(60) > formatter = mticker.FuncFormatter(minse

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

2009-04-08 Thread Eric Firing
antonv wrote: > I know that using the csv files is very slow but I have no knowledge of > working with the netcdf format and I was in a bit of a rush when I wrote > this. I will take a look again at it. How would you translate a grib in > netcdf? Are there any secific applications or straight throu

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

2009-04-08 Thread Anton Vasilescu
Wow Jeff! You save me again! I remember looking at it last year and thinking it would be awesome if there would be a windows installer for it! I will install and play with it tonight! Thanks a lot! Anton From: Jeff Whitaker To: antonv Cc: matplotlib-users@li

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

2009-04-08 Thread Jeff Whitaker
antonv wrote: > I know that using the csv files is very slow but I have no knowledge of > working with the netcdf format and I was in a bit of a rush when I wrote > this. I will take a look again at it. How would you translate a grib in > netcdf? Are there any secific applications or straight throu

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

2009-04-08 Thread antonv
I know that using the csv files is very slow but I have no knowledge of working with the netcdf format and I was in a bit of a rush when I wrote this. I will take a look again at it. How would you translate a grib in netcdf? Are there any secific applications or straight through numpy? As for pyn

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

2009-04-08 Thread Eric Firing
antonv wrote: > I have a bit of experience programming and I am pretty sure I get my parts of > the code pretty well optimized. I made sure that in the loop I have only the > stuff needed and I'm loading all the stuff before. > > The biggest bottleneck is happening because I'm unpacking grib files

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

2009-04-08 Thread antonv
I have a bit of experience programming and I am pretty sure I get my parts of the code pretty well optimized. I made sure that in the loop I have only the stuff needed and I'm loading all the stuff before. The biggest bottleneck is happening because I'm unpacking grib files to csv files using Deg

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

2009-04-08 Thread João Luís Silva
antonv wrote: > Hi all, > > I am processing a lot of grib data from noaa with the use of matplotlib and > basemap. On my actual laptop (p4 3ghz, 512mb ram) the whole process takes > close to 3 hours... so it's time for a new machine but still on a very tight > budget :) > You should profile your

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

2009-04-08 Thread Eric Firing
antonv wrote: > Hi all, > > I am processing a lot of grib data from noaa with the use of matplotlib and > basemap. On my actual laptop (p4 3ghz, 512mb ram) the whole process takes > close to 3 hours... so it's time for a new machine but still on a very tight > budget :) > > My main question is wh

[Matplotlib-users] saving at a specified size

2009-04-08 Thread Gideon Simpson
Is there a way to save a figured at a specified size? -gideon -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! ht

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

2009-04-08 Thread antonv
Hi all, I am processing a lot of grib data from noaa with the use of matplotlib and basemap. On my actual laptop (p4 3ghz, 512mb ram) the whole process takes close to 3 hours... so it's time for a new machine but still on a very tight budget :) My main question is what should i emphasize more, a

Re: [Matplotlib-users] Creating an xaxis with minutes

2009-04-08 Thread Ryan May
On Tue, Apr 7, 2009 at 4:29 PM, Jae-Joon Lee wrote: > Hi, > > I'm not a frequent user of matplotlib.dates module, so other expert > may give you a better answer. > My understanding is that, for the date time formatting, the (x-) data > needs to be days (if not datetime instance) from some refere

Re: [Matplotlib-users] Basemap Installation Errors

2009-04-08 Thread Andrew Straw
jtamir wrote: > Hi, > > I am having trouble installing Basemap. I followed the directions in the > README file included in the archive (and posted at > http://matplotlib.sourceforge.net/basemap/doc/html/users/installing.html). > After successfully installing the GEOS library (also included), I cd t

[Matplotlib-users] Basemap Installation Errors

2009-04-08 Thread jtamir
Hi, I am having trouble installing Basemap. I followed the directions in the README file included in the archive (and posted at http://matplotlib.sourceforge.net/basemap/doc/html/users/installing.html). After successfully installing the GEOS library (also included), I cd to the "top level basemap

[Matplotlib-users] ploting matrix data

2009-04-08 Thread Bala subramanian
Friends, I have a pairwise comparison of 50 data points. The comparison is based on the mean square deviation between the points. I want to plot this data by specifying different colors for diffrent ranges of mean square deviation. Any suggestion would be of much help to me. I have attached the da

Re: [Matplotlib-users] Localization in mpl

2009-04-08 Thread LUK ShunTim
Jesper Larsen wrote: > Hi matplotlib-users, > > I have an application which I am currently translating to other > languages including Chinese. I was wondering what recommendations you > have for internationalization with regards to matplotlib. Using the > default font it seems like Chinese charact

Re: [Matplotlib-users] Localization in mpl

2009-04-08 Thread Jouni K . Seppänen
Jesper Larsen writes: > wind = u'\u98ce' > p.title(wind) > But there is just a box instead of the proper character on the plot. > Any ideas what went wrong? Do I have to use a special font? Of course you need a font that contains the Chinese characters you are using. I have no idea whether matp

[Matplotlib-users] Localization in mpl

2009-04-08 Thread Jesper Larsen
Hi matplotlib-users, I have an application which I am currently translating to other languages including Chinese. I was wondering what recommendations you have for internationalization with regards to matplotlib. Using the default font it seems like Chinese characters are not showing up on the plo