Re: [Matplotlib-users] netcdf4-python usage, NetCDFFile

2010-10-30 Thread Jeff Whitaker
On 10/30/10 5:05 PM, John wrote: > Thank you. I didn't think they used it, I just wanted to know if it > was safe to do what you suggested to try. It does seem to work. > > Another question, can netcd4-python READ HDF files? Or is it just that > it creates files that are readable? If it's the latte

Re: [Matplotlib-users] netcdf4-python usage, NetCDFFile

2010-10-30 Thread John
Thank you. I didn't think they used it, I just wanted to know if it was safe to do what you suggested to try. It does seem to work. Another question, can netcd4-python READ HDF files? Or is it just that it creates files that are readable? If it's the latter, does anyone have a suggestion for a pyt

[Matplotlib-users] Setting tick labels for matshow

2010-10-30 Thread Nikolaus Rath
Hello, I am trying to set tick labels for a matshow plot. This works just fine if I only work on the X axis: res = np.diag(np.arange(10)) # dummy data modes = [ (x+1, 0) for x in range(5) ] # dummy data fig = plt.figure() ax = fig.add_subplot(111) cs = ax.matshow(res)

[Matplotlib-users] my duel with the legend is over. I won. :)

2010-10-30 Thread Daniel Hyams
lol. Finally found the magic parameter. borderaxespad. import pylab,matplotlib pylab.plot([1,2,3,4,5],[1,2,3,4,5],"bo",label="data") ax = pylab.gca() pylab.legend(bbox_to_anchor=(0,1),loc=2,borderaxespad=0) # draw an X to make sure of coordinates. ax.lines.append(matplotlib.lines.Line2D((0,1

Re: [Matplotlib-users] how to get legend size, try #2.

2010-10-30 Thread Daniel Hyams
With Paul's suggestions (greatly appreciated!) I almost have this thing workingthere is still something strange going on in that when I call get_window_extent() on the legend, I always get ones and zeros no matter where it is...but that's for another post on another day. This one, I hope, is a

Re: [Matplotlib-users] Confirming problem with matplotlib.pyplot.show()

2010-10-30 Thread Benjamin Root
On Thursday, October 28, 2010, Pradyumna wrote: > > Hello All, > > I am running into same issue except mine won't go away even when I went back > to matplotlib 0.99. > > Also, something curious I noticed - when I run the examples, I don't get this > error message. > > Please let me know if you h

Re: [Matplotlib-users] Overlapping pcolor() plots

2010-10-30 Thread Friedrich Romstedt
2010/10/29 chewbaccabacca : > I have three seperate pcolor() plots that I want to merge into one single > plot (see attached file). Each plot uses a binary color scheme (white and > blue, white and red, and white and green). [...] > > http://old.nabble.com/file/p30087644/contour_phase_boundary.png

Re: [Matplotlib-users] Possible to get variable spacing between certain subplots?

2010-10-30 Thread Friedrich Romstedt
2010/10/28 Benjamin Root : > On Thu, Oct 28, 2010 at 1:18 PM, Will Grover wrote: >> Hello matplotlib-users, >> I'm using subplots to make an array of plots, but because some of the >> plots have wider y-axis tick labels than others, some of the subplots end up >> looking too close to each other.  

Re: [Matplotlib-users] netcdf4-python usage, NetCDFFile

2010-10-30 Thread Jeff Whitaker
On 10/30/10 3:41 AM, John wrote: > I've searched through the netcdf4-python trunk, but I find no > reference of NetCDFFile as in how the basemap or Scientific.IO.NetCDF > modules use it. > > For compatibility with my old scripts, is it safe to simply: > > from netCDF4 import Dataset as NetCDFFile

Re: [Matplotlib-users] Format y-axis tick labels in 'comma' notation ie 234004 would be 234, 004 etc.

2010-10-30 Thread Friedrich Romstedt
Hi Dharhas, 2010/10/19 Dharhas Pothina : >> There's no way around the ``Decimal``?  Otherwise I cannot confirm the >> inelegancyness except this construct ;-) > the moneyfmt routine I downloaded requires the Decimal package (i.e > decimal.Decimal). I didn't have time to try writing my own version

[Matplotlib-users] netcdf4-python usage, NetCDFFile

2010-10-30 Thread John
I've searched through the netcdf4-python trunk, but I find no reference of NetCDFFile as in how the basemap or Scientific.IO.NetCDF modules use it. For compatibility with my old scripts, is it safe to simply: from netCDF4 import Dataset as NetCDFFile ?? Thanks, john ---