[Matplotlib-users] Matplotlib 0.99.3 win32 py2.6 crashes on import

2010-05-31 Thread Craig McQueen
I just installed matplotlib-0.99.3.win32-py2.6.exe on this Win2000 PC. When I try: from matplotlib import pyplot as plt it crashes Python with an apparent NULL-pointer reference. If I run python -v then it crashes just after: # c:\python26\lib\site-packages\matplotlib\transforms.pyc

Re: [Matplotlib-users] Matplotlib 0.99.3 win32 py2.6 crashes on import

2010-05-31 Thread Christoph Gohlke
On 5/31/2010 1:53 AM, Craig McQueen wrote: I just installed matplotlib-0.99.3.win32-py2.6.exe on this Win2000 PC. When I try: from matplotlib import pyplot as plt it crashes Python with an apparent NULL-pointer reference. If I run python -v then it crashes just after: #

[Matplotlib-users] setting scientific number notation on colorbar

2010-05-31 Thread Oz Nahum
Hi Guys, I'm breaking my head how to use scientific numbering on color bar: I use the following code to plot data from multiple files, would be great if someone could direct me, becuase the numbers I have are 0.0013 et. and what ever I do, the number just go over each other: for i in

Re: [Matplotlib-users] Matplotlib 0.99.3 win32 py2.6 crashes on import

2010-05-31 Thread Craig McQueen
Christoph Gohlke wrote: On 5/31/2010 1:53 AM, Craig McQueen wrote: I just installed matplotlib-0.99.3.win32-py2.6.exe on this Win2000 PC. When I try: from matplotlib import pyplot as plt it crashes Python with an apparent NULL-pointer reference. If I run python -v then it

Re: [Matplotlib-users] setting scientific number notation on colorbar

2010-05-31 Thread Oz Nahum
Hi, I wanted to be more clear: the numbers on my figure's color bar range from 0 to 1.7, but mpl writes the following numbers: 0., 0.000250,0.50,0.000750, etc. This is totally not somthing I can use, it looks horrible. I'm also attaching the image ... -- Oz Nahum Graduate Student

Re: [Matplotlib-users] setting scientific number notation on colorbar

2010-05-31 Thread Oz Nahum
found a solution after 2 hours ... colorbar(ax=ax1, orientation='horizontal',format='%.3f') now, I need to know how to set up limits for all the images which are exactly the same limits. So far I'm failing with the use of boundaries Would be happy to know -- Oz Nahum Graduate Student

Re: [Matplotlib-users] setting scientific number notation on colorbar

2010-05-31 Thread Benjamin Root
Oz, Some plotting functions like pcolor and imshow have keyword args for vmin/vmax where you can explicitly set the min and maximum values for the colorscale. There are some more complicated things you can do with the colormap that are more generic to all plotting functions as well, but I would

Re: [Matplotlib-users] setting scientific number notation on colorbar

2010-05-31 Thread Oz Nahum
Hi Thanks for the answer, actually, I always use show and plot, I have no clue how to use the functions you suggested ... I'll look into it. Do you have an idea where I can find a description of the keyword format '%.3f' is nice, but still not scientific format... is this like Fortran? On

Re: [Matplotlib-users] setting scientific number notation on colorbar

2010-05-31 Thread Andre Walker-Loud
Hi Thanks for the answer, actually, I always use show and plot, I have no clue how to use the functions you suggested ... I'll look into it. Do you have an idea where I can find a description of the keyword format '%.3f' is nice, but still not scientific format... you can use '%.3e'

Re: [Matplotlib-users] Matplotlib 0.99.3 win32 py2.6 crashes on import

2010-05-31 Thread Christoph Gohlke
On 5/31/2010 4:53 PM, Craig McQueen wrote: Christoph Gohlke wrote: On 5/31/2010 1:53 AM, Craig McQueen wrote: I just installed matplotlib-0.99.3.win32-py2.6.exe on this Win2000 PC. When I try: from matplotlib import pyplot as plt it crashes Python with an apparent NULL-pointer reference.

Re: [Matplotlib-users] setting scientific number notation on colorbar

2010-05-31 Thread Oz Nahum
hi andre, thanks for your reply, do you know where I can find more documentation about this ? Thanks, On Mon, May 31, 2010 at 5:55 PM, Andre Walker-Loud walksl...@gmail.comwrote: Hi Thanks for the answer, actually, I always use show and plot, I have no clue how to use the functions you

Re: [Matplotlib-users] setting scientific number notation on colorbar

2010-05-31 Thread Andre Walker-Loud
Hi Oz, Sorry, I am not familiar with what you are trying to do with your plots. Everything I have learned is from trial and error, the gallery page http://matplotlib.sourceforge.net/gallery.html and the user manual http://matplotlib.sourceforge.net/contents.html Good luck, Andre

[Matplotlib-users] accessing colorbar() list of values

2010-05-31 Thread Oz Nahum
Hi, I open another thread because I think this is not related. I have figured out how to create scientific notation in the color bar. However, by default Python creates really ugly values for printing: 1.165E+00, 1.167E+00... etc. I figure that they are stored somewhere in a list. I could do :

Re: [Matplotlib-users] accessing colorbar() list of values

2010-05-31 Thread Benjamin Root
Yeah, I don't think that is what you want. I believe the 'ax' you are referencing there is the figure axes. How do you want the numbers to appear? Ben Root On Mon, May 31, 2010 at 8:27 PM, Oz Nahum nahu...@gmail.com wrote: Hi, I open another thread because I think this is not related. I

Re: [Matplotlib-users] setting scientific number notation on colorbar

2010-05-31 Thread Benjamin Root
On Mon, May 31, 2010 at 7:51 PM, Oz Nahum nahu...@gmail.com wrote: Hi Thanks for the answer, actually, I always use show and plot, I have no clue how to use the functions you suggested ... I'll look into it. Do you have an idea where I can find a description of the keyword format '%.3f'

[Matplotlib-users] imshow, imsave to PIL image conversion

2010-05-31 Thread rugspin
I have a small problem how to convert an image from matplotlib to PIL right now doing somthing like this: -- from scipy import * from pylab import * from PIL import Image a = arange(16384).reshape(128,128) imsave( test.png, a,

Re: [Matplotlib-users] Matplotlib 0.99.3 win32 py2.6 crashes on import

2010-05-31 Thread John Hunter
On Mon, May 31, 2010 at 7:56 PM, Christoph Gohlke cgoh...@uci.edu wrote: John: I rebuilt the 32 bit binaries for Python 2.5 and 2.6 against numpy 1.3.0. They do also work with numpy 1.4.1. Please consider uploading these binaries to the SF site. I also noticced that the eggs on the SF download

Re: [Matplotlib-users] Matplotlib 0.99.3 win32 py2.6 crashes on import

2010-05-31 Thread Christoph Gohlke
On 5/31/2010 7:45 PM, John Hunter wrote: On Mon, May 31, 2010 at 7:56 PM, Christoph Gohlkecgoh...@uci.edu wrote: John: I rebuilt the 32 bit binaries for Python 2.5 and 2.6 against numpy 1.3.0. They do also work with numpy 1.4.1. Please consider uploading these binaries to the SF site. I

Re: [Matplotlib-users] imshow, imsave to PIL image conversion

2010-05-31 Thread Angus McMorland
On 31 May 2010 19:49, rugspin piet_par...@web.de wrote: I have a small problem how to convert an image from matplotlib to PIL right now doing somthing like this: -- from scipy import * from pylab import * from PIL import Image a =

Re: [Matplotlib-users] imshow, imsave to PIL image conversion

2010-05-31 Thread Angus McMorland
On 31 May 2010 23:17, Angus McMorland amcm...@gmail.com wrote: On 31 May 2010 19:49, rugspin piet_par...@web.de wrote: I have a small problem how to convert an image from matplotlib to PIL right now doing somthing like this: -- from scipy import *