[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 but
then it disappears again when it is done, before I can even look at it.

Any suggestions on how to keep the graphing window open?

Thanks,

Mark
--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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

2009-09-22 Thread Jouni K . Seppänen
Mark Bakker mark...@gmail.com 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 interactive work can be
difficult, depending on the backend, and whatever command-loop magic
IPython does makes it work better. You could try different backends, but
I suspect that Pydev would have to have specific support for integrating
the backend-specific command loop for it to really work.

-- 
Jouni K. Seppänen
http://www.iki.fi/jks


--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[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 and fixes.  A detailed listing of fixes is available
in the svn log below

Thanks to Christoph Gohlke for the windows builds.




r7813 | jdh2358 | 2009-09-21 12:12:47 -0500 (Mon, 21 Sep 2009) | 1 line

tag for 0.99.1 release

r7808 | ryanmay | 2009-09-21 11:30:11 -0500 (Mon, 21 Sep 2009) | 1 line

Correct typo of subtitle() - suptitle().

r7803 | mdboom | 2009-09-21 06:57:17 -0500 (Mon, 21 Sep 2009) | 1 line

Fix 'variable used before defined' errors in backend_pdf.py building the docs

r7800 | jouni | 2009-09-20 14:47:46 -0500 (Sun, 20 Sep 2009) | 1 line

Fix usetex spacing errors in pdf backend.

r7796 | jouni | 2009-09-20 08:19:25 -0500 (Sun, 20 Sep 2009) | 1 line

Fix off-by-one error in dviread.Tfm

r7794 | jouni | 2009-09-20 07:30:22 -0500 (Sun, 20 Sep 2009) | 1 line

Prevent exception in case of missing height and depth information in a TeX font

r7792 | efiring | 2009-09-19 18:46:06 -0500 (Sat, 19 Sep 2009) | 2 lines

Fix bug in bar affecting autoscaling with log axis


r7790 | efiring | 2009-09-19 01:28:43 -0500 (Sat, 19 Sep 2009) | 2 lines

Fix bug in mlab.demean, with axis = -1


r7788 | efiring | 2009-09-18 21:53:06 -0500 (Fri, 18 Sep 2009) | 2 lines

Fix bug in maxdict when replacing an existing item


r7784 | mdboom | 2009-09-18 10:16:20 -0500 (Fri, 18 Sep 2009) | 2 lines

Fix bug where subslicing was cutting polar lines off (because it was
treating them as if they were rectilinearly plotted).


r7780 | efiring | 2009-09-17 21:48:03 -0500 (Thu, 17 Sep 2009) | 2 lines

Fix garbled getp output


r7778 | leejjoon | 2009-09-17 16:42:03 -0500 (Thu, 17 Sep 2009) | 1 line

fix the legend bug that dash-style for LineCollections handle is set incorrectly

r7776 | jdh2358 | 2009-09-17 12:06:02 -0500 (Thu, 17 Sep 2009) | 1 line

add make.osx to manifest

r7774 | mdboom | 2009-09-17 09:56:00 -0500 (Thu, 17 Sep 2009) | 2 lines

Fix bug whereby non-finite values in the path were not being ignored
by the view limits finding algorithm.


r7772 | mdboom | 2009-09-17 09:17:48 -0500 (Thu, 17 Sep 2009) | 2 lines

Fix clip path in SVG backend.


r7770 | efiring | 2009-09-16 18:38:54 -0500 (Wed, 16 Sep 2009) | 2 lines

Don't use wxversion with py2exe; fix by Werner Bruhin


r7762 | jouni | 2009-09-15 07:12:19 -0500 (Tue, 15 Sep 2009) | 1 line

Don't fail on AFM files containing floating-point bounding boxes

r7756 | mdboom | 2009-09-14 12:11:06 -0500 (Mon, 14 Sep 2009) | 1 line

Minor doc fixes

r7751 | jdh2358 | 2009-09-12 16:11:42 -0500 (Sat, 12 Sep 2009) | 1 line

tagging for 99.1 release candiate

r7749 | efiring | 2009-09-11 16:14:15 -0500 (Fri, 11 Sep 2009) | 2 lines

Backported quiver bug fix from trunk


r7745 | efiring | 2009-09-11 15:48:10 -0500 (Fri, 11 Sep 2009) | 2 lines

Fix bug in quiver angle kwarg, found when input angle array is not 1-D


r7741 | jdh2358 | 2009-09-10 21:06:30 -0500 (Thu, 10 Sep 2009) | 1 line

minor tweaks to licensing devel doc

r7740 | astraw | 2009-09-10 20:54:27 -0500 (Thu, 10 Sep 2009) | 2 lines

bugfix: bounds checking in hexbin with extent specified 

[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

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 alanwil...@gmail.com 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/solve this issue?

 Many thanks in advance.


from matplotlib.cm import LUTSIZE

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[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.
cax = plt.axes([l+w+0.03, b, 0.025, h-0.035])
cb = plt.colorbar(im2, cax)#, format='%3.2g') # draw colorbar
## set colorbar label and ticks
p_cax = mpl.font_manager.FontProperties(size='6')
clabels = clevs[::10] ##clevs, by 10 steps
clabels.append(clevs[-1]) ## add the last label
cb.ax.set_yticks(np.linspace(0,1,len(clabels)))
cb.ax.set_yticklabels(['%3.2g' % cl for cl in clabels],
fontproperties=p_cax)
cax.set_title('sensitivity\n(%s)' % units,
  fontproperties=p_cax)


NOTE: It does set the title properties correctly.
-- 
View this message in context: 
http://www.nabble.com/colorbar-tick-label-fontproperties-tp25530779p25530779.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[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 BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 alanwil...@gmail.com 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).

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[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', color=CC[i])

But if fails because:

m.scatter returns:
matplotlib.collections.CircleCollection object at 0x127898d0

Rather than a list of objects??? Or something. The point is, I would expect
'circles' above to have len==cx, but it does not. What am I doing wrong?



-- 
View this message in context: 
http://www.nabble.com/circle-collection-get_facecolors-in-Basemap-tp25530811p25530811.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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  


 -Original Message-
 From: John [H2O] [mailto:washa...@gmail.com]
 Sent: Tuesday, September 22, 2009 8:03 AM
 To: matplotlib-users@lists.sourceforge.net
 Subject: [Matplotlib-users] colorbar tick label fontproperties
 
 
 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.
 cax = plt.axes([l+w+0.03, b, 0.025, h-0.035])
 cb = plt.colorbar(im2, cax)#, format='%3.2g') # draw colorbar
 ## set colorbar label and ticks
 p_cax = mpl.font_manager.FontProperties(size='6')
 clabels = clevs[::10] ##clevs, by 10 steps
 clabels.append(clevs[-1]) ## add the last label
 cb.ax.set_yticks(np.linspace(0,1,len(clabels)))
 cb.ax.set_yticklabels(['%3.2g' % cl for cl in clabels],
 fontproperties=p_cax)
 cax.set_title('sensitivity\n(%s)' % units,
   fontproperties=p_cax)
 
 
 NOTE: It does set the title properties correctly.
 --
 View this message in context: http://www.nabble.com/colorbar-tick-
 label-fontproperties-tp25530779p25530779.html
 Sent from the matplotlib - users mailing list archive at Nabble.com.
 
 
 --
 
 Come build with us! The BlackBerryreg; Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart
 your
 developing skills, take BlackBerry mobile applications to market and
 stay
 ahead of the curve. Join us from November 9#45;12, 2009. Register
 now#33;
 http://p.sf.net/sfu/devconf
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 map(cx,cy):
 ax.text(x,y,'some text', color=CC[i])
 
 But if fails because:
 
 m.scatter returns:
 matplotlib.collections.CircleCollection object at 0x127898d0
 
 Rather than a list of objects??? Or something. The point is, I would expect
 'circles' above to have len==cx, but it does not. What am I doing wrong?

The first thing you are doing wrong is failing to provide a complete, 
minimal, self-contained example illustrating the problem.  I don't think 
the snippet you gave is representative of what you are running.  Instead 
of map I think you mean zip.  Where are you incrementing i?

The general approach of using the get_facecolor() method to get the 
array, and indexing into it, is fine.  That is not where the problem is. 
  Once you put together a minimal example, I think you will find the 
problem--or that there really is no problem.

A collection is used by scatter because it is much more efficient than a 
sequence of objects.

Eric

 
 
 


--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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:d07] Inconsistent set of values to create  
 NSBitmapImageRep
 /Users/pierregm/.local/lib/python2.6/site-packages/matplotlib/ 
 backends/backend_cocoaagg.py:140: UninitializedDeallocWarning:  
 leaking an uninitialized object of type NSBitmapImageRep
  32) # bits per pixel

 Can anybody reproduce it ? Would anybody have some ideas on how to  
 fix that ?
 Thx a lot in advance.
 P.
 FYI, the build log can be accessed at: http://pastebin.com/d5b3c1838

I'm very, very sorry to bump my own thread, but I'm in a bit of a  
pickle. Matplotlib installs and runs nicely on my Snow Leopard  
installation, but I'm blind: cocoa fails, wxpython is 32b only and  
compiling Qt4 is becoming increasingly frustrating on a 64b machine.
Any help or hint would be really, really appreciated.
(and once again, sorry for my being rude)
P.



--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 pgmdevl...@gmail.com 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
 empty window and error message as such:

 Python[53010:d07] Inconsistent set of values to create
 NSBitmapImageRep
 /Users/pierregm/.local/lib/python2.6/site-packages/matplotlib/
 backends/backend_cocoaagg.py:140: UninitializedDeallocWarning:
 leaking an uninitialized object of type NSBitmapImageRep
  32) # bits per pixel

 Can anybody reproduce it ? Would anybody have some ideas on how to
 fix that ?
 Thx a lot in advance.
 P.
 FYI, the build log can be accessed at: http://pastebin.com/d5b3c1838

 I'm very, very sorry to bump my own thread, but I'm in a bit of a
 pickle. Matplotlib installs and runs nicely on my Snow Leopard
 installation, but I'm blind: cocoa fails, wxpython is 32b only and
 compiling Qt4 is becoming increasingly frustrating on a 64b machine.
 Any help or hint would be really, really appreciated.
 (and once again, sorry for my being rude)
 P.

I'm not sure if you have the option to go 32-bit, but the cocoa
backend works fine on snow leopard with a 32-bit build (-arch i386),
that I built on leopard prior to upgrading. The 64 bit transition
should be interesting, especially given the persistence of heritage
universal (PPC) build processes.

-Eric

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 pgmdevl...@gmail.com 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
 empty window and error message as such:

 Python[53010:d07] Inconsistent set of values to create
 NSBitmapImageRep
 /Users/pierregm/.local/lib/python2.6/site-packages/matplotlib/
 backends/backend_cocoaagg.py:140: UninitializedDeallocWarning:
 leaking an uninitialized object of type NSBitmapImageRep
  32) # bits per pixel

 Can anybody reproduce it ? Would anybody have some ideas on how to
 fix that ?
 Thx a lot in advance.
 P.
 FYI, the build log can be accessed at: http://pastebin.com/d5b3c1838

 I'm very, very sorry to bump my own thread, but I'm in a bit of a
 pickle. Matplotlib installs and runs nicely on my Snow Leopard
 installation, but I'm blind: cocoa fails, wxpython is 32b only and
 compiling Qt4 is becoming increasingly frustrating on a 64b machine.
 Any help or hint would be really, really appreciated.
 (and once again, sorry for my being rude)

Are you using the CocoaAgg backend or MacOSX?  If the former, is the
latter an option for you?

JDH

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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?
 
 #!/usr/bin/env python
 
 from pylab import *
 
 data = array([[1,2,3,4],[5,6,7,8]])
 imshow(data,interpolation=None)
 savefig('output.png')
 close('all')

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 of smoothing on the data it  
 displays?  If so, is there a way to turn this off?
 #!/usr/bin/env python
 from pylab import *
 data = array([[1,2,3,4],[5,6,7,8]])
 imshow(data,interpolation=None)
 savefig('output.png')
 close('all')


--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] imshow smoothing

2009-09-22 Thread John Hunter
On Tue, Sep 22, 2009 at 3:45 PM, Michael Hearne mhea...@usgs.gov 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

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users