Re: [Matplotlib-users] imshow smoothing

2009-09-22 Thread John Hunter
On Tue, Sep 22, 2009 at 3:45 PM, Michael Hearne wrote: > Great! You may also want to take a look at the brand-spanking-new image tutorial, which covers this http://matplotlib.sourceforge.net/users/image_tutorial.html JDH -

Re: [Matplotlib-users] imshow smoothing

2009-09-22 Thread Michael Hearne
Great! Thanks, Mike On Sep 22, 2009, at 2:38 PM, Gary Ruben wrote: > Yes. Use interpolation='nearest' instead. > > Gary R. > > Michael Hearne wrote: >> Running the test script below gives me the image I have attached, >> which looks like it has been smoothed. >> Does imshow perform some sort o

Re: [Matplotlib-users] imshow smoothing

2009-09-22 Thread Gary Ruben
Yes. Use interpolation='nearest' instead. Gary R. Michael Hearne wrote: > Running the test script below gives me the image I have attached, which > looks like it has been smoothed. > > Does imshow perform some sort of smoothing on the data it displays? If > so, is there a way to turn this off

Re: [Matplotlib-users] Cocoa Backend on Snow Leopard

2009-09-22 Thread John Hunter
On Tue, Sep 22, 2009 at 1:53 PM, Pierre GM wrote: > > On Sep 19, 2009, at 12:55 PM, Pierre GM wrote: > >> All, >> I'm trying to use the Cocoa backend on Snow Leopard, using r7791 >> (GCC 4.2.1 / Python 2.6.1 from Apple, 64b) >> Unfortunately, a simple `plot(range(10),range(10))` gives me an >> emp

Re: [Matplotlib-users] Cocoa Backend on Snow Leopard

2009-09-22 Thread Eric Bruning
On Tue, Sep 22, 2009 at 2:53 PM, Pierre GM wrote: > > On Sep 19, 2009, at 12:55 PM, Pierre GM wrote: > >> All, >> I'm trying to use the Cocoa backend on Snow Leopard, using r7791 >> (GCC 4.2.1 / Python 2.6.1 from Apple, 64b) >> Unfortunately, a simple `plot(range(10),range(10))` gives me an >> emp

Re: [Matplotlib-users] Cocoa Backend on Snow Leopard

2009-09-22 Thread Pierre GM
On Sep 19, 2009, at 12:55 PM, Pierre GM wrote: > All, > I'm trying to use the Cocoa backend on Snow Leopard, using r7791 > (GCC 4.2.1 / Python 2.6.1 from Apple, 64b) > Unfortunately, a simple `plot(range(10),range(10))` gives me an > empty window and error message as such: > > Python[53010:d0

Re: [Matplotlib-users] circle collection get_facecolors in Basemap

2009-09-22 Thread Eric Firing
John [H2O] wrote: > Hello, > > I'm trying to plot text objects with the color used in m.scatter. My goal is > to individually label each scatter object. I've tried the following: > > circles=m.scatter(cx,cy,zsize,zlevel,cmap=cmap) > > and then: > CC = circles.get_facecolor() > i=0 > for x,y in m

Re: [Matplotlib-users] colorbar tick label fontproperties

2009-09-22 Thread PHobson
John, The following code works for me (Python 2.5.4, Matplotlib 0.99): # create and format the colorbar cbar = pl.colorbar(G, ticks=range(g1,g2+1)) cbar.ax.set_ylabel('Gradient (%)', fontsize=10) cl = pl.getp(cbar.ax, 'ymajorticklabels') pl.setp(cl, fontsize=10) -Paul M. Hobson

[Matplotlib-users] circle collection get_facecolors in Basemap

2009-09-22 Thread John [H2O]
Hello, I'm trying to plot text objects with the color used in m.scatter. My goal is to individually label each scatter object. I've tried the following: circles=m.scatter(cx,cy,zsize,zlevel,cmap=cmap) and then: CC = circles.get_facecolor() i=0 for x,y in map(cx,cy): ax.text(x,y,'some text',

Re: [Matplotlib-users] from matplotlib.numerix.mlab import amax

2009-09-22 Thread Ryan May
On Tue, Sep 22, 2009 at 10:25 AM, Alan wrote: > Hi there, > > I want to move to numpy only. What would be the replacement for: > > from matplotlib.numerix.mlab import amax > > ? > numpy.amax You should be able to do that for most of numerix I believe (I and would definitely try that first). Ry

[Matplotlib-users] from matplotlib.numerix.mlab import amax

2009-09-22 Thread Alan
Hi there, I want to move to numpy only. What would be the replacement for: from matplotlib.numerix.mlab import amax ? Many thanks in advance, Alan -- Come build with us! The BlackBerry® Developer Conference in SF, CA

[Matplotlib-users] colorbar tick label fontproperties

2009-09-22 Thread John [H2O]
Could someone please explain how to change the font properties for a colorbar tick label, the following causes no error, but it does NOT work: ## CREATE COLORBAR ## make a copy of the image object im2 = copy.copy(im) im2.set_cmap(colmap) ## create new axis for colorbar. c

Re: [Matplotlib-users] no LUTSIZE in matplotlib._cm anymore

2009-09-22 Thread Ryan May
On Tue, Sep 22, 2009 at 9:22 AM, Alan wrote: > Hi there, > > In mtpl __version__ = '0.98.5.3' "from matplotlib._cm import LUTSIZE" > still works, but in matplotlib.__version__ = '0.99.0' no: > > from matplotlib._cm import LUTSIZE > ImportError: cannot import name LUTSIZE > > How can I replace/so

[Matplotlib-users] no LUTSIZE in matplotlib._cm anymore

2009-09-22 Thread Alan
Hi there, In mtpl __version__ = '0.98.5.3' "from matplotlib._cm import LUTSIZE" still works, but in matplotlib.__version__ = '0.99.0' no: from matplotlib._cm import LUTSIZE ImportError: cannot import name LUTSIZE How can I replace/solve this issue? Many thanks in advance. Alan --

[Matplotlib-users] ANN: matplotlib-0.99.1

2009-09-22 Thread John Hunter
The 0.99.1 release is available for download from sourceforge http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.1/ This is a bug-fix release with an emphasis on stability. Lots of bugs have been fixed since 0.99.0 so thanks to all who contributed bug reports, patches

Re: [Matplotlib-users] matplotlib with eclipse: how to get a graph?

2009-09-22 Thread Jouni K . Seppänen
Mark Bakker writes: > I recently started using Eclipse with Pydev. I like it a lot but have not > been able to get interactive plotting going (which otherwise works > fine). Does Pydev have any sort of specific support for matplotlib? I'm asking because even in the normal Python shell interactiv

[Matplotlib-users] matplotlib with eclipse: how to get a graph?

2009-09-22 Thread Mark Bakker
Hello list, I recently started using Eclipse with Pydev. I like it a lot but have not been able to get interactive plotting going (which otherwise works fine). My file is simple: from pylab import * ion() plot([1,2,3]) When I run this form within Eclipse, I do see a graphing window open up bu