Re: [Matplotlib-users] putting "persistent" lines on figures

2006-12-08 Thread Eric Firing
belinda thom wrote: > Hi, > > I could've sworn I recently read about how to draw a line on a plot > in such a way that you see it regardless of what the axis ranges are. If you need horizontal or vertical lines specified in normalized coordinates (0 to 1 spans the axes) then you can use the Ax

Re: [Matplotlib-users] obtaining version info

2006-12-08 Thread Eric Firing
Alan G Isaac wrote: > I assume there must be a reason for this:: > > >>> import pylab > >>> pylab.__version__ > Traceback (most recent call last): > File "", line 1, in > AttributeError: 'module' object has no attribute '__version__' > > That has always bothered me. > But o

[Matplotlib-users] putting "persistent" lines on figures

2006-12-08 Thread belinda thom
Hi, I could've sworn I recently read about how to draw a line on a plot in such a way that you see it regardless of what the axis ranges are. Now that I need it, I can't find it anywhere. I'm not even sure what to search for. I suspect this is really trivial and hope some more advanced users

[Matplotlib-users] out-dated documentation

2006-12-08 Thread belinda thom
Hello, Regarding http://matplotlib.sourceforge.net/installing.html, there is some unreliable info. In particular, under the OS X topic, "Robery Kern has built an all-in-one installer which includes scipy, Numeric, numarray, matplotlib, ipython, VTK, MayaVi, PIL, the enthought tool suite an

[Matplotlib-users] Cocoa NSView and IB Palette for embedding Matplotlib figures

2006-12-08 Thread Barry Wark
In the process of creating a Cocoa app for scientific data acquisition, I've built an NSImageView subclass that displays an MPL figure in the Cocoa NSView hierarchy. It's based on the CocoaAgg backend code in MPL. There are also some subclasses that allow the use of Cocoa Bindings to supply the dat

Re: [Matplotlib-users] zorder of legend

2006-12-08 Thread Gary Ruben
Sorry John, I see this was fixed a while ago - I was still using 0.87.3 from the last Enthought edition. Now that there's a scipy installer, I should upgrade numpy/scipy/mpl to something more current. Gary R. Gary Ruben wrote: > While I think of it, I think the default zorder of legends should

Re: [Matplotlib-users] obtaining version info

2006-12-08 Thread Alan G Isaac
I assume there must be a reason for this:: >>> import pylab >>> pylab.__version__ Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute '__version__' That has always bothered me. But of course you can:: >>> import matpl

Re: [Matplotlib-users] obtaining version info

2006-12-08 Thread Josh Lifton
I didn't see it either. For questions like this, I recommend heading to the #python channel on irc.freenode.net. If you find out how, please post. josh On Fri, 8 Dec 2006, belinda thom wrote: > Hi, > > Perhaps I'm missing something really basic, but I can't figure out > how to query pylab as t

[Matplotlib-users] obtaining version info

2006-12-08 Thread belinda thom
Hi, Perhaps I'm missing something really basic, but I can't figure out how to query pylab as to what version it is (the usual import , .__version doesn't work). Advice appreciated. --b - Take Surveys. Earn Cash. Influen

[Matplotlib-users] more outdated/unhelpful documentation and installation issues on Mac OS X 10.4

2006-12-08 Thread belinda thom
Hi again, At http://matplotlib.sourceforge.net/installing.html under topic OS X: "All of the backends run on OS X. Chris Barker has built a binary package (fink users see below) for matplotlib which is hosted on pythonmac, and works with Agg, Wx and Tk; see the step-by-step instructions

Re: [Matplotlib-users] Merge colorbars from imshow and contour

2006-12-08 Thread Eric Firing
Yannick Copin wrote: > Hi, > > in a case similar to matplotlib-0.87.7/examples/contour_demo.py (figure > 4), would it be possible to merge to two colorbars (a continuous one > from imshow, a discrete one from contour) into a single colorbar? > Indeed, in that case, the two colorbars are mostly

Re: [Matplotlib-users] Different contours in contour and contourf

2006-12-08 Thread Eric Firing
Yannick Copin wrote: > Hi, > > running the simple test code: > > from pylab import * > X, Y = meshgrid(linspace(-3,3,11),linspace(-3,3,11)) > Z = randn(*X.shape) > lev = linspace(Z.min(),Z.max(),11)[1:-1] > contourf(X,Y,Z, lev, extend='both') > contour(X,Y,Z, lev, colors='k') > show() > > you wi

[Matplotlib-users] clip_on bug? and 2nd-axis label question

2006-12-08 Thread Dave
In past work I have not been able to get clipping to behave as I expected. Today I was trying to understand how to add a right-axis label and was using an example from the matplotlib site that set clip_on=False. It did not work. In looking at the code in method text() it appears that it checks f

Re: [Matplotlib-users] giving parameters to func when using events

2006-12-08 Thread John Hunter
> "Martin" == Martin Richter <[EMAIL PROTECTED]> writes: Martin> My question now is: Is there a way to avoid using global Martin> variables but also avoid an object-oriented programming? Martin> In other words: Is it possible to pass e.g. a dictionary Martin> containing some in

[Matplotlib-users] giving parameters to func when using events

2006-12-08 Thread Martin Richter
Hello everyone, below is a little code - what it actually does is quite self-explanatory. (When clicking with left - draw a red circle. When the right button is pressed switch to a different mode. Now green squares are drawn and so on.) My question now is: Is there a way to avoid using global va

[Matplotlib-users] Different contours in contour and contourf

2006-12-08 Thread Yannick Copin
Hi, running the simple test code: from pylab import * X, Y = meshgrid(linspace(-3,3,11),linspace(-3,3,11)) Z = randn(*X.shape) lev = linspace(Z.min(),Z.max(),11)[1:-1] contourf(X,Y,Z, lev, extend='both') contour(X,Y,Z, lev, colors='k') show() you will probably notice that the 'contourf' contours

[Matplotlib-users] Merge colorbars from imshow and contour

2006-12-08 Thread Yannick Copin
Hi, in a case similar to matplotlib-0.87.7/examples/contour_demo.py (figure 4), would it be possible to merge to two colorbars (a continuous one from imshow, a discrete one from contour) into a single colorbar? Indeed, in that case, the two colorbars are mostly redundant. Cheers. --