Re: [Matplotlib-users] Is it possible to build matplotlib in place ?

2009-09-29 Thread Sandro Tosi
Hi David, On Wed, Sep 30, 2009 at 07:48, David Cournapeau wrote: > Hi, > >    I tried to build matplotlib in place (setup.py build_ext -i), and > found out that I could not import it: yes, you should be able to build it in-place (even if usually run 'python setup.py build' because I need the ful

[Matplotlib-users] Is it possible to build matplotlib in place ?

2009-09-29 Thread David Cournapeau
Hi, I tried to build matplotlib in place (setup.py build_ext -i), and found out that I could not import it: matplotlib/rcsetup.py:117: UserWarning: rcParams key "numerix" is obsolete and has no effect; please delete it from your matplotlibrc file warnings.warn('rcParams key "numerix" is o

[Matplotlib-users] placing a plot on top of an imshow

2009-09-29 Thread rafa5
Hi guys, I'm having problems creating a plot. I attached a crude version that I drew with Gimp to show what I actually want to do with matplotlib http://www.nabble.com/file/p25667058/example2.png example2.png . Basically it boils down to placing an axes instance on top of an existing axes with a

Re: [Matplotlib-users] scaling arrows in quiver

2009-09-29 Thread Eric Firing
jason-s...@creativetrax.com wrote: > A couple of us are trying to figure out how to scale arrows in a quiver > plot so that we can exactly specify what the output arrows look like. > For example, we'd like to scale the vectors to half of their size, and > have it look like that on the quiver pl

[Matplotlib-users] scaling arrows in quiver

2009-09-29 Thread jason-sage
A couple of us are trying to figure out how to scale arrows in a quiver plot so that we can exactly specify what the output arrows look like. For example, we'd like to scale the vectors to half of their size, and have it look like that on the quiver plot. So I tried even just getting a quiver

Re: [Matplotlib-users] Grouper use

2009-09-29 Thread Eric Firing
TP wrote: > Hi everybody, > > I try to play with "sharex" feature. Then, I have been guided to the > class "Grouper" of module cbook: > > http://matplotlib.sourceforge.net/api/cbook_api.html > > So I tried the following example: > > ## > from matplotlib.cbook import

[Matplotlib-users] Only using a rcParams that are defined in matplotlibrc

2009-09-29 Thread Rob Falck
The rcParams list seems to list all settings regardless of whether or not they are defined in matplotlibrc. If I want the figure.facecolor to be white unless the user defines it as something else in his or her matplotlibrc file, is there an easy way to do that short of opening up matplotlib_fname(

Re: [Matplotlib-users] glumpy: fast OpenGL numpy visualization + matplotlib integration

2009-09-29 Thread Christopher Barker
Gökhan Sever wrote: > This is technically called OpenGL backend, isn't it? well, I think it's different -- he's not really using the standard backend API. The trick with doing a real OpenGL back-end, is that a lot of computation time is spend doing transforms, and that can't be fully pushed to

[Matplotlib-users] TeX and lucidabr

2009-09-29 Thread Marco Cabizza
Hello, I'm writing my thesis with the Lucida Bright font ( provided by the lucidabr package ) and I can't seem to get properly rendered fonts in any Matplotlib eps file. Setting the preamble with the rc variable doesn't look like a good idea, I even tried adding lucidabr to texmana

Re: [Matplotlib-users] Basemap and clim, has this changed in 0.99

2009-09-29 Thread Evan Mason
On Tue, Sep 29, 2009 at 7:12 PM, Jeff Whitaker wrote: > Evan Mason wrote: >> >> Hi, I've just upgraded to mpl 0.99 (from svn) and Basemap (also from svn). >> >> >> > > Evan:  I believe Ryan May just fixed this yesterday - so if you update > basemap from svn again it should work. > > -Jeff >> >> It

Re: [Matplotlib-users] changing alpha in contourf according to z values

2009-09-29 Thread Eric Firing
Tsviki Hirsh wrote: > Dear list, > > Is it possible to specify to contourf an alpha value which is not a pure > number but lets say an array? > I would like to change the value of alpha according to the contourf > values and to get in this way a fading effect on the vallies. For contourf, one a

Re: [Matplotlib-users] Basemap and clim, has this changed in 0.99

2009-09-29 Thread Jeff Whitaker
Evan Mason wrote: > Hi, I've just upgraded to mpl 0.99 (from svn) and Basemap (also from svn). > > > Evan: I believe Ryan May just fixed this yesterday - so if you update basemap from svn again it should work. -Jeff > It seems that plt.clim(vmin,vmax) no longer works with Basemap > objects.

Re: [Matplotlib-users] Basemap and clim, has this changed in 0.99

2009-09-29 Thread Ryan May
On Tue, Sep 29, 2009 at 12:52 PM, Evan Mason wrote: > Hi, I've just upgraded to mpl 0.99 (from svn) and Basemap (also from svn). > > > > It seems that plt.clim(vmin,vmax) no longer works with Basemap > objects.  Here is an example, which before used to work: > > > In [92]: M.pcolormesh(x, y, a_var

Re: [Matplotlib-users] new interface functions for LinearSegmentedColormap

2009-09-29 Thread Phillip M. Feldman
Hello Eric, The functions that I've created make it possible to generate a discrete (piecewise-constant) or continuous (piecewise-linear) colormap and register it at a single shot. These functions also accept a list of thresholds if the user wants to specify non-default thresholds. It seems

[Matplotlib-users] Basemap and clim, has this changed in 0.99

2009-09-29 Thread Evan Mason
Hi, I've just upgraded to mpl 0.99 (from svn) and Basemap (also from svn). It seems that plt.clim(vmin,vmax) no longer works with Basemap objects. Here is an example, which before used to work: In [92]: M.pcolormesh(x, y, a_var,cmap=cm) Out[92]: In [93]: plt.clim(-10,10) ---

Re: [Matplotlib-users] Update a contour plot

2009-09-29 Thread Eric Firing
Ralph Kube wrote: > Hey everybody, > thank you for your answers. I use matplotlib from qt4 now. What I do is > creating a widget in a gui and using this for plotting. The plot is to > refreshed by clicking on a button. This works perfectly fine, > until I start adding a colorbar to the plot. > When

Re: [Matplotlib-users] new interface functions for LinearSegmentedColormap

2009-09-29 Thread Eric Firing
Dr. Phillip M. Feldman wrote: > After experimenting with colormaps for a while, I was able to make both > discrete (piecewise-constant) and continuous (piecewise-linear) colormaps > work. Although colormaps can be created directly using > LinearSegmentedColormap from the matplotlib.colors package,

Re: [Matplotlib-users] Path object where different vertices use different transforms?

2009-09-29 Thread Uri Laserson
Thanks so much for all the help! If my effort will produce something nice, I'll forward it on... Uri On Mon, Sep 28, 2009 at 23:38, Jae-Joon Lee wrote: > The exception will go away if you explicitly use np.array as below. > >     box = np.array([[self.x, self.y1], >                     [self.x,

Re: [Matplotlib-users] Subplots, multiple bar3d plots + titling

2009-09-29 Thread Jae-Joon Lee
Hmm, axes3d does not seem to support it currently. I hope Reinier or others confirm this. Anyhow, here is a quick workaround you may try. from matplotlib.axes import subplot_class_factory class MyAxes3D(Axes3D): def _button_press(self, event): if event.inaxes == self: Axe

[Matplotlib-users] changing alpha in contourf according to z values

2009-09-29 Thread Tsviki Hirsh
Dear list, Is it possible to specify to contourf an alpha value which is not a pure number but lets say an array? I would like to change the value of alpha according to the contourf values and to get in this way a fading effect on the vallies. What about imshow? Thank you v much, I really enjoy th

Re: [Matplotlib-users] basemap, transform_scalar question

2009-09-29 Thread Jeff Whitaker
John [H2O] wrote: > I'm trying to 'automate' a few components within basemap. I have a pretty > complicated, and assuredly poorly written, set of functions that allow me to > 'dynamically' plot a grid of data (lon,lat). > > Here is one section where I try to deal with transforming the data based on

Re: [Matplotlib-users] Subplots, multiple bar3d plots + titling

2009-09-29 Thread qubax
Thanks, that works like a charm. final bonus question: How can i individually set the point of view/zoom level for the different 3d subplots? Currently, when i rotate/zoom (with the mouse) in one subplot, the changes are applied on all 3d subplots. Thanks again, q On Mon, Sep 28, 2009 at 11:52

[Matplotlib-users] Grouper use

2009-09-29 Thread TP
Hi everybody, I try to play with "sharex" feature. Then, I have been guided to the class "Grouper" of module cbook: http://matplotlib.sourceforge.net/api/cbook_api.html So I tried the following example: ## from matplotlib.cbook import * g = Grouper() g.join('a', 'b'

Re: [Matplotlib-users] Update a contour plot

2009-09-29 Thread Ralph Kube
Hey everybody, thank you for your answers. I use matplotlib from qt4 now. What I do is creating a widget in a gui and using this for plotting. The plot is to refreshed by clicking on a button. This works perfectly fine, until I start adding a colorbar to the plot. When I add the colorbar and replot

Re: [Matplotlib-users] Plot Updating Strangeness

2009-09-29 Thread Matthias Michler
Hello, I cannot reproduce your problem with current svn and backends "GTKAgg", "TkAgg" and "WXAgg". What version of matplotlib you are using? What backend? Could you provide a stand-alone example which illustrates your problem? I attached the example file I used to try to find your reported st

Re: [Matplotlib-users] Update a contour plot

2009-09-29 Thread Matthias Michler
Hi Eric, I didn't intend to be faster or more memory saving than clearing the axes but to preserve the properties of the axes (like the label in my example). What are the advantages of using 'cla' instead of deleting old collections? Kind regards, Matthias PS: The following works as the previo