[Matplotlib-users] Contours on imshow with limited range

2007-12-03 Thread Christian Lerrahn
Hi, I limit the value range of my imshow using vmin and vmax. As I like the way the contour levels are usually coloured by contour, I would like to just restrict them to the same range but have matplotlib use the default spacing and colouring. In other words, I want to avoid setting levels manually

Re: [Matplotlib-users] TypeError on CocoaAgg backend

2007-12-03 Thread Chris Fonnesbeck
On Dec 3, 2007 7:34 PM, Barry Wark <[EMAIL PROTECTED]> wrote: > sorry instances of self.plotView.image > > On Dec 3, 2007 3:38 PM, Chris Fonnesbeck <[EMAIL PROTECTED]> wrote: > > I replaced the one instance of this that I found. I now get the following error: In [7]: show() --

Re: [Matplotlib-users] hist() hangs on OSX 10.5

2007-12-03 Thread Chris Fonnesbeck
On Dec 3, 2007 9:41 PM, John Hunter <[EMAIL PROTECTED]> wrote: > On Dec 3, 2007 10:13 AM, John Hunter <[EMAIL PROTECTED]> wrote: > > > Sorry for the confusion, I was still on the *old* problem of tkagg > > hanging w/ hist, and was wondering if it was hanging with other plot > > commands too. Not t

Re: [Matplotlib-users] Matplotlib very slow

2007-12-03 Thread John Hunter
On Dec 3, 2007 9:08 AM, José Gómez-Dans <[EMAIL PROTECTED]> wrote: > Hi, > I have compiled v.0.90.1 on RHEL 5. By default, the GTKAgg backend is being > used (TkAgg cannot be set, as TkInter is not installed on the system, I > think. It throws a "NO Module named Tkinter" error). > > At any rate, a

Re: [Matplotlib-users] How to change coordinate system origin

2007-12-03 Thread John Hunter
On Dec 3, 2007 7:50 AM, Jaonary Rabarisoa <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm relatively new to matplotlib and what I'll ask to you seems to be simple > but I just can't figure out how to do this. I'd like to change the origin of > my coordinate system to the upper left of my axis when I

Re: [Matplotlib-users] colored histogram

2007-12-03 Thread John Hunter
On Dec 3, 2007 4:57 AM, Dirk Zickermann <[EMAIL PROTECTED]> wrote: > Dear users, > I would like to generate a colored histogram using a colormap. > via > ... > vals, bins, patchs = pylab.hist(hist_data ,75 ,normed=1) > .. > Does anybody know how to assign a colormap to a histogram to find map data

Re: [Matplotlib-users] Problems with binary install of matplotlib-0.9.1 python2.4 on windows

2007-12-03 Thread Charlie Moad
I'll remove the exe's from SF. It's been a while since a release, and I guess I was a little rusty. ;) - Charlie On Dec 3, 2007 7:02 PM, John Hunter <[EMAIL PROTECTED]> wrote: > > On Dec 3, 2007 5:53 PM, John Hunter <[EMAIL PROTECTED]> wrote: > > On Dec 3, 2007 5:49 PM, John Hunter <[EMAIL PROTE

Re: [Matplotlib-users] hist() hangs on OSX 10.5

2007-12-03 Thread John Hunter
On Dec 3, 2007 10:13 AM, John Hunter <[EMAIL PROTECTED]> wrote: > Sorry for the confusion, I was still on the *old* problem of tkagg > hanging w/ hist, and was wondering if it was hanging with other plot > commands too. Not that you can easily test now w/ the active tcl > install. Chris, if you

Re: [Matplotlib-users] TypeError on CocoaAgg backend

2007-12-03 Thread Barry Wark
sorry instances of self.plotView.image On Dec 3, 2007 3:38 PM, Chris Fonnesbeck <[EMAIL PROTECTED]> wrote: > OK, I'm having a bad backend day (insert joke here). > > Since I am on OSX, I decided to switch over to the CocoaAgg backend, > but it fails when trying to show a histogram, yielding the fo

Re: [Matplotlib-users] TypeError on CocoaAgg backend

2007-12-03 Thread Barry Wark
Chris, This error is due to more stringent error checking in pyobjc2 which ships with Leopard. I was just preparing a patch to send to the matplotlib dev guys, but if you replace all instances of self.image with self._image in backend_cocoaagg.py, things should work. Because PlotView is an NSImage

Re: [Matplotlib-users] Problems with binary install of matplotlib-0.9.1 python2.4 on windows

2007-12-03 Thread John Hunter
On Dec 3, 2007 5:53 PM, John Hunter <[EMAIL PROTECTED]> wrote: > On Dec 3, 2007 5:49 PM, John Hunter <[EMAIL PROTECTED]> wrote: > > > Charlie, I don't know how you handled this last time, but is there > > something in setuptools you have to disable for this build? > > Well, here's a clue: matplotli

Re: [Matplotlib-users] Problems with binary install of matplotlib-0.9.1 python2.4 on windows

2007-12-03 Thread John Hunter
On Dec 3, 2007 5:49 PM, John Hunter <[EMAIL PROTECTED]> wrote: > Charlie, I don't know how you handled this last time, but is there > something in setuptools you have to disable for this build? Well, here's a clue: matplotlib/__init__.py does not exist in this instal JDH ---

Re: [Matplotlib-users] Problems with binary install of matplotlib-0.9.1 python2.4 on windows

2007-12-03 Thread John Hunter
On Dec 3, 2007 5:44 PM, Charlie Moad <[EMAIL PROTECTED]> wrote: > I gave it a try, and I did not get this error. I am seeing the problem on python2.5 using the binary exe installer. It appears we are getting fouled up by setuptools special handling of the __init__.py file, which is supposed to be

Re: [Matplotlib-users] Problems with binary install of matplotlib-0.9.1 python2.4 on windows

2007-12-03 Thread Charlie Moad
I gave it a try, and I did not get this error. - Charlie On Dec 3, 2007 12:57 PM, Jörgen Stenarson <[EMAIL PROTECTED]> wrote: > Hi, > > After upgrading to the new matplotlib 0.9.1 on python2.4 using the > windows binary installer I get the following error: > > > C:\>python > Python 2.4.3 (#69, Ma

[Matplotlib-users] TypeError on CocoaAgg backend

2007-12-03 Thread Chris Fonnesbeck
OK, I'm having a bad backend day (insert joke here). Since I am on OSX, I decided to switch over to the CocoaAgg backend, but it fails when trying to show a histogram, yielding the following TypeError: In [4]: from matplotlib import use In [5]: use('CocoaAgg') In [6]: from pylab import hist, sh

[Matplotlib-users] Problems with binary install of matplotlib-0.9.1 python2.4 on windows

2007-12-03 Thread Jörgen Stenarson
Hi, After upgrading to the new matplotlib 0.9.1 on python2.4 using the windows binary installer I get the following error: C:\>python Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> impor

Re: [Matplotlib-users] hist() hangs on OSX 10.5

2007-12-03 Thread John Hunter
On Dec 3, 2007 10:08 AM, Chris Fonnesbeck <[EMAIL PROTECTED]> wrote: > > On Dec 3, 2007 10:58 AM, John Hunter <[EMAIL PROTECTED]> wrote: > > On Dec 2, 2007 9:23 PM, Chris Fonnesbeck <[EMAIL PROTECTED]> wrote: > > > Running a recent build from svn on OSX 10.5, the TkAgg interface > > > becomes unres

Re: [Matplotlib-users] hist() hangs on OSX 10.5

2007-12-03 Thread Chris Fonnesbeck
On Dec 3, 2007 11:04 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > Possibly related to the _tkagg extension -- that's what defines the > "PyAggImagePhoto" method. If you installed ActiveState's Tcl/Tk after > building matplotlib, that could explain this. Try doing a clean build > of matplot

Re: [Matplotlib-users] hist() hangs on OSX 10.5

2007-12-03 Thread Chris Fonnesbeck
On Dec 3, 2007 10:58 AM, John Hunter <[EMAIL PROTECTED]> wrote: > On Dec 2, 2007 9:23 PM, Chris Fonnesbeck <[EMAIL PROTECTED]> wrote: > > Running a recent build from svn on OSX 10.5, the TkAgg interface > > becomes unresponsive after plotting a histogram and calling show(). > > Here is a sample fro

Re: [Matplotlib-users] hist() hangs on OSX 10.5

2007-12-03 Thread Michael Droettboom
Possibly related to the _tkagg extension -- that's what defines the "PyAggImagePhoto" method. If you installed ActiveState's Tcl/Tk after building matplotlib, that could explain this. Try doing a clean build of matplotlib again (removing the build directory first). But that's only a suggestio

Re: [Matplotlib-users] hist() hangs on OSX 10.5

2007-12-03 Thread John Hunter
On Dec 2, 2007 9:23 PM, Chris Fonnesbeck <[EMAIL PROTECTED]> wrote: > Running a recent build from svn on OSX 10.5, the TkAgg interface > becomes unresponsive after plotting a histogram and calling show(). > Here is a sample from the process, in case it is useful: Is it only hist that is hanging?

[Matplotlib-users] ANN: matplotlib 0.91.1

2007-12-03 Thread John Hunter
A new release of matplotlib is posted to the sourceforge download site http://sourceforge.net/project/showfiles.php?group_id=80706 You can read the release notes with links at http://matplotlib.sourceforge.net/whats_new.html enhanced mathtext - Complete revamp of matplotlib's internal math layou

Re: [Matplotlib-users] ps.usedistiller doesn't know ghostscript version

2007-12-03 Thread Darren Dale
On Monday 03 December 2007 9:03:59 am Lionel Roubeyrie wrote: > Hi all, > there's a little problem with ghostscript on ubuntu gutsy, mpl complaints > about a bad version : > ipython -pylab > /usr/lib/python2.5/site-packages/matplotlib/__init__.py:641: UserWarning: > matplotlibrc ps.usedistiller opt

Re: [Matplotlib-users] hist() hangs on OSX 10.5

2007-12-03 Thread Chris Fonnesbeck
On Dec 2, 2007 10:44 PM, John Hunter <[EMAIL PROTECTED]> wrote: > On Dec 2, 2007 9:23 PM, Chris Fonnesbeck <[EMAIL PROTECTED]> wrote: > > Running a recent build from svn on OSX 10.5, the TkAgg interface > > becomes unresponsive after plotting a histogram and calling show(). > > Here is a sample fro

[Matplotlib-users] Matplotlib very slow

2007-12-03 Thread José Gómez-Dans
Hi, I have compiled v.0.90.1 on RHEL 5. By default, the GTKAgg backend is being used (TkAgg cannot be set, as TkInter is not installed on the system, I think. It throws a "NO Module named Tkinter" error). At any rate, a test session is as follows: import pylab pylab.plot ( [1,2,3],[1,2,3],'-or')

Re: [Matplotlib-users] Missing \Delta in mathtext

2007-12-03 Thread Rob Hetland
On Dec 3, 2007, at 2:53 PM, Michael Droettboom wrote: > Personally, I like to set the math fonts explicitly, rather than > using the font categories. This is what I set for using Arev Sans: > > mathtext.cal : Arev Sans:oblique > mathtext.it : Arev Sans:oblique > mathtext.rm : Arev Sans > mat

Re: [Matplotlib-users] printing quality

2007-12-03 Thread Rich Shepard
On Mon, 3 Dec 2007, Michael Droettboom wrote: > That may be beyond matplotlib's control. Matplotlib "requests" a solid > grey color, but the printing stack (Acrobat, the printer driver or the > printer itself) could be interpreting that in many ways. You could > experiment with various printer s

[Matplotlib-users] ps.usedistiller doesn't know ghostscript version

2007-12-03 Thread Lionel Roubeyrie
Hi all, there's a little problem with ghostscript on ubuntu gutsy, mpl complaints about a bad version : ipython -pylab /usr/lib/python2.5/site-packages/matplotlib/__init__.py:641: UserWarning: matplotlibrc ps.usedistiller option can not be used unless ghostscript-7.07 or later is installed on yo

Re: [Matplotlib-users] Missing \Delta in mathtext

2007-12-03 Thread Michael Droettboom
I see what's going on here. Upper-case Greek letters are always upright (non-italic) in mathtext. TeX does this, and it is apparently a long standing American typographic convention. So, when it goes to print the "\Delta", it looks at "mathtext.rm", which in your case you have set to "serif

[Matplotlib-users] How to change coordinate system origin

2007-12-03 Thread Jaonary Rabarisoa
Hi all, I'm relatively new to matplotlib and what I'll ask to you seems to be simple but I just can't figure out how to do this. I'd like to change the origin of my coordinate system to the upper left of my axis when I plot my figures. In matlab I use axis('ij') but in matplotlib I couldn't find

Re: [Matplotlib-users] Missing \Delta in mathtext

2007-12-03 Thread Rob Hetland
On Dec 3, 2007, at 2:26 PM, Michael Droettboom wrote: > Can you send your matplotlibrc settings and the mathtext expression > you are using? One or the other of those is causing Vera Serif to > be used for the \Delta character rather than Arev Sans. I get this error anytime I try to get a

Re: [Matplotlib-users] Missing \Delta in mathtext

2007-12-03 Thread Michael Droettboom
The line I'm referring to is this ---> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mathtext.py:808: MathTextWarning: Font 'BitstreamVeraSerif-Roman' does not have a glyph for '\Delta' MathTextWarning) Can you send your matplotlibrc settings and t

Re: [Matplotlib-users] Missing \Delta in mathtext

2007-12-03 Thread Rob Hetland
On Dec 3, 2007, at 2:02 PM, Michael Droettboom wrote: > Can you send your matplotlibrc file? (Particularly the mathtext.* > options...) Also, can you set "verbose.level" to "debug-annoying" > and send us the output? It seems to me that Arev is being used from the debug information. See

Re: [Matplotlib-users] printing quality

2007-12-03 Thread Michael Droettboom
Peter I. Hansen wrote: > On Nov 30, 2007 11:14 PM, Michael Droettboom <[EMAIL PROTECTED]> wrote: >> Thanks for the script. I ran it through 0.90 and 0.91... Perhaps I >> don't understand your problem with color. To my eyes, the plot >> generated with Agg (to a PNG) and to a PDF look the same, in

Re: [Matplotlib-users] Missing \Delta in mathtext

2007-12-03 Thread Michael Droettboom
The log shows that for some reason it is pulling in BitstreamVeraSerif-Roman instead of Arev Sans for that character. It could be that it isn't finding the Arev fonts on your system. Can you send your matplotlibrc file? (Particularly the mathtext.* options...) Also, can you set "verbose.leve

[Matplotlib-users] Missing \Delta in mathtext

2007-12-03 Thread Rob Hetland
I was working on a figure, using mathtext and the Arev Sans fontset, and I noticed that \Delta does not display correctly. In fact, none of the capitol greek letters show up. It claims they are missing (and I do not default back to CM). However, I _know_ Arev Sans has \Delta (and the ot

[Matplotlib-users] more on continous plotting

2007-12-03 Thread ray sa
Hello Thanks for those whom have helped. I manage to get it to work but it is not working so smoothly. Does anyone know of another way I can achieve pleasant results? I am new to this with python and am trying to get my head around this. Basically I would like to plot a log file continuou

[Matplotlib-users] colored histogram

2007-12-03 Thread Dirk Zickermann
Dear users, I would like to generate a colored histogram using a colormap. via ... vals, bins, patchs = pylab.hist(hist_data ,75 ,normed=1) .. Does anybody know how to assign a colormap to a histogram to find map data so that one can find easily data from a 2d map in the histogram? Thanks a lot, d