[Matplotlib-users] arrows on contour plots

2009-04-15 Thread Evan Mason
Hi, I want to put arrows onto the contours of a contour plot, the direction will depend on whether the contour is positive/negative. Before I try to do it myself, has anybody written something to do that? Thanks, Evan --

Re: [Matplotlib-users] pyplot.figure stealing window focus!!

2009-04-15 Thread Christopher Brown
Hi List, AS> now you're not loading the AS> graphical library that was grabbing focus, but merely a low(er) AS> level drawing library. This raises a question I've had for some time. I wish the figure method had x and y kwargs, so that I could specify where the figure window pops up. It always s

[Matplotlib-users] postscript bug?

2009-04-15 Thread Andres Luhamaa
Hello! Following example will give strange result in postscript output. It does not happen, if I use imshow or contourf instead of pcolormesh and it seems to happen only with log scale. Best regards, Andres import numpy as np import matplotlib matplotlib.use( 'PS' ) from mpl_toolkits.basemap im

[Matplotlib-users] Memory leak in Agg backend?

2009-04-15 Thread Jesper Larsen
Hi matplotlib developers and users, I have had some problems with a memory leak in a long running matplotlib based web application that I have developed (www.worldwildweather.com). I believe the problem is due to a memory leak in the Agg backend but I am not sure. Below is a script which for me re

Re: [Matplotlib-users] show annotations only on hovering

2009-04-15 Thread John Hunter
On Wed, Apr 15, 2009 at 8:03 AM, Vito De Tullio wrote: > Gregor Thalhammer wrote: > > > I didn't understand what you mean by 'plot nodes' > > the markers, sorry > > > , but there exist > > figure_enter_event, figure_leave_event, axes_enter_event and > > axes_leave_event, see > > > > http://matplot

Re: [Matplotlib-users] show annotations only on hovering

2009-04-15 Thread Vito De Tullio
Gregor Thalhammer wrote: > I didn't understand what you mean by 'plot nodes' the markers, sorry > , but there exist > figure_enter_event, figure_leave_event, axes_enter_event and > axes_leave_event, see > http://matplotlib.sourceforge.net/examples/event_handling/figure_axes_enter_leave.html fi

Re: [Matplotlib-users] show annotations only on hovering

2009-04-15 Thread Gregor Thalhammer
Vito De Tullio schrieb: > Hi all. > I'm using matplotlib to draw some graph in a pyqt application. > Is there a way to show infos only when the mouse hover the plot nodes? > At the moment I'm stuck using this (ugly, and conceptually wrong) piece of > code, written by me... > > basically I add hidde

[Matplotlib-users] show annotations only on hovering

2009-04-15 Thread Vito De Tullio
Hi all. I'm using matplotlib to draw some graph in a pyqt application. Is there a way to show infos only when the mouse hover the plot nodes? At the moment I'm stuck using this (ugly, and conceptually wrong) piece of code, written by me... basically I add hidden annotations where I need, then (ab)

Re: [Matplotlib-users] Generating N regularly spaced points on a sphere

2009-04-15 Thread Jeff Whitaker
Zane Selvans wrote: > Is there a method built into Numpy/SciPy or friends that will generate > a set of N points evenly (regularly - not randomly) sampling the > entire surface of a sphere? I imagine people doing GCMs and other > geoscience in spherical coordinates have to do this pretty frequentl

Re: [Matplotlib-users] postscript and basemap resolution

2009-04-15 Thread Andres Luhamaa
Thanks Jeff, seems better indeed with svn version, at least resolution 'h' works (cant test the f resolution on a laptop). But when I zoom the image 4x, then gv starts giving errors again. At the same time, evince can show at the same zoom level. Andres Jeff Whitaker wrote: > Andres Luhamaa w

Re: [Matplotlib-users] Dog Ear?

2009-04-15 Thread Matthias Michler
Hi Andrew, if I understand correctly "set_clip_path" is what you want. The usage was discussed in the following threads, where John Hunter also proposed the example code added below. http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg10155.html http://www.mail-archive.com/mat

Re: [Matplotlib-users] ploting matrix data - contourf

2009-04-15 Thread Matthias Michler
Hello Eric, Hello list, On Tuesday 14 April 2009 20:39:06 Eric Firing wrote: > Matthias Michler wrote: [...] > > Second question: Could it be useful to add two kwargs 'over_color' > > and 'under_color' to contourf in order to allow specification of a > > extended ListedColormap by kwarg 'colors'

[Matplotlib-users] Dog Ear?

2009-04-15 Thread Andrew Kelly
Hello,I am relatively new to matplotlib but I get the basics. What I need to do though is a slightly customized graph area. There are two plots on the same graph - a parabola and a straight line (with a negative slope) north east of the parabola. This graph has grid lines. Simple enough, but no