[Matplotlib-users] Bug in xscale? Or wrong way to plot log x-axis scale with negative values?

2011-06-03 Thread Nicolas Bigaouette
Hi all, I'm plotting data which extent, in x, from -1000 to 1000. But I'm only interested in the values between x = -1 and 0. I also want to plot on an x log scale. But since the x-values are negative, I cannot use xscale(log). I can use xscale(symlog) though and this is the behaviour I want.

Re: [Matplotlib-users] 3d Surface-Contour Plot

2011-03-28 Thread Nicolas Bigaouette
On Mon, Mar 14, 2011 at 9:05 AM, herbie13 g.h.herb...@dur.ac.uk wrote: Hello, I basically have a Chi-Squared distribution that is dependent on 3 variables. eg. X2(x, y, z) What I would like to do is be able to plot the chi-squared + 1 surface in 3-dimensions. eg. I would like to have

[Matplotlib-users] Slider: can valmax be updated?

2011-02-15 Thread Nicolas Bigaouette
Hi all, I'm using a matplotlib.widgets.Slider on my animated figure. Sometime, I want to refresh the maximum value of the slider (since new values to plot were generated). Is it possible to update the valmax value of the slider? If not, is it possible to delete the slider and create a new one?

[Matplotlib-users] MinorLogTickFormatter and is_decade()

2011-01-28 Thread Nicolas Bigaouette
Hi all, I have a derived class that I copy-pasted from the web somewhere to hide some tick labels: class MinorLogTickFormatter(matplotlib.ticker.LogFormatter): # Format log scale with 10^ labels. Only if show one label over two. def __call__(self, val, pos=None): exponent =

[Matplotlib-users] Bug in NonUniformImage?

2010-12-13 Thread Nicolas Bigaouette
Hi all, I'm using matplotlib.image.NonUniformImage() to plot a 2D rectilinear grid (non uniform spacing between points): im = matplotlib.image.NonUniformImage(grid, extent=extent, origin='lower', cmap = matplotlib.cm.jet, interpolation = nearest) im.set_data(x, y, z) ax.images.append(im)

Re: [Matplotlib-users] Use a marker symbol in a text string

2010-11-23 Thread Nicolas Bigaouette
Why not just use latex? plt.text(0.05, 0.95, rThis is the square marker: $\Box$ Subscript: $_\Box$ superscript: $^\Box$, fontsize=20) -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the

[Matplotlib-users] How to get axes from a user click?

2010-11-16 Thread Nicolas Bigaouette
Hi all, I have defined some shortcuts I often use using pylab.ginput(). I normally do: fig = pylab.figure() fig.canvas.mpl_connect('key_press_event', on_key) with my on_key function being (simplified): def on_key(event): if (event.key == 'q'): sys.exit(0) elif (event.key

Re: [Matplotlib-users] automatically choose different line markers

2010-11-08 Thread Nicolas Bigaouette
How can I automatically cycle through distinctive line markers? I want a semilog plot, composed of a number of lines. Each line should have a different color and marker. I simply use: colors = ['b', 'r', 'c', 'm', 'k', 'g', 'y'] symbols = ['-', '--', '-.', ':'] nc = len(colors) ns =

Re: [Matplotlib-users] imshow() and a transparent colormap?

2010-10-02 Thread Nicolas Bigaouette
On Fri, Oct 1, 2010 at 5:38 PM, Stan West stan.w...@nrl.navy.mil wrote: *From:* Nicolas Bigaouette [mailto:nbigaoue...@gmail.com] *Sent:* Thursday, September 30, 2010 18:00 What I would like to do it have a colormap which is transparent for lower values of data and opaque for high values

[Matplotlib-users] Vectorization

2010-07-02 Thread Nicolas Bigaouette
Hi all, I don't really know where to ask, so here it is. I was able to vectorize the normalization calculation in quantum mechanics: phi|phi. Basically it's a volume integral of a scalar field. Using: norm = 0.0 for i in numpy.arange(len(dx)-1): for j in numpy.arange(len(dy)-1):

[Matplotlib-users] Qt4Agg backend and SIGINT (ctrl+c)

2010-02-23 Thread Nicolas Bigaouette
Hi, I cannot kill a plot by ctrl+c in a terminal (sending the SIGINT) when using the Qt4Agg backend. When using GTKAgg it works fine... What could be wrong? I need that. Thanx! -- Download Intel#174; Parallel Studio

Re: [Matplotlib-users] mplot3d: plot_surface() and contour on grid?

2009-12-12 Thread Nicolas Bigaouette
Wonderful! Thanx a lot ;) 2009/12/11 phob...@geosyntec.com Reinier, This in incredible. Wow. Thanks for all of your hard work. Cheers, -paul -Original Message- From: Reinier Heeres [mailto:rein...@heeres.eu] Sent: Thursday, December 10, 2009 3:37 PM To: Matthias Michler

Re: [Matplotlib-users] mplot3d: plot_surface() and contour on grid?

2009-10-09 Thread Nicolas Bigaouette
against current svn. The result is illustrated in the contour3d_demo.png. Could any of the experts have a look at it and tell me if this could be useful, please? Thanks in advance for any comments. Kind regards Matthias On Wednesday 30 September 2009 19:22:42 Nicolas Bigaouette

Re: [Matplotlib-users] Axes3D - size of the Z axe

2009-10-02 Thread Nicolas Bigaouette
I was looking for something similar. It seems Axes3D() takes the angle as argument: import matplotlib.pyplot as plt import mpl_toolkits.mplot3d as m3d fig = plt.figure() ax = m3d.Axes3D(fig, elev = 20.0, azim = 45) in degrees. 2009/10/2 German Ocampo geroca...@gmail.com Hello After search

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

2009-09-28 Thread Nicolas Bigaouette
I'm not sure its possible right now to do subplots with 3D. As for the title, I cannot either put titles on any 3D graphs... 2009/9/28 qu...@gmx.at Greetings, I would like to plot to make a figure with 3 subplots of the form (221) to (223): - each subplot should show a bar3d plot of a

Re: [Matplotlib-users] mplot3d bars3d demo

2009-09-16 Thread Nicolas Bigaouette
I have reported that issue on the tracker at the end of July. You can fin dit here: http://sourceforge.net/tracker/?func=detailatid=560720aid=2830483group_id=80706 It's supposed to be fixed in 0.99... are you sure you are using it? I remember trying it just after the bug was closed with an svn

Re: [Matplotlib-users] making quicktime animations from linux -- summary

2009-09-05 Thread Nicolas Bigaouette
Thats good information to have gathered! It sure will be usefull. Have you look into the new html5's video tag? You can directly embed ogg in a page, without flash or any other plugin. Firefox 3.5 supports that, I think Safari would work too. See this page for information (and look up the source)

Re: [Matplotlib-users] Fwd: best format for MS word?

2009-09-03 Thread Nicolas Bigaouette
I'm sure everybody find this really sad... If he wants control over the ploting capabilities, then why not have matplotlib and send him the script?I know when I switched to matplotlib from matlab I wanted to be able to edit directly the graph with point and click, but sometimes it is more powerful

Re: [Matplotlib-users] making quicktime animations from linux

2009-09-03 Thread Nicolas Bigaouette
I produce all my movies in Ogg container + Theora compression. I use ffmpeg2theora for that, available on all platforms:ffmpeg2theora --nosound --optimize --width 1024 --height 768 --inputfps=15 --aspect 4:3 png/mov%04d.png -o movie.ogv 2009/9/3 Andrew Straw straw...@astraw.com I use::

Re: [Matplotlib-users] how to update plots fast

2009-09-02 Thread Nicolas Bigaouette
Have you read these? http://www.scipy.org/Cookbook/Matplotlib/Animations http://matplotlib.sourceforge.net/examples/animation/index.html?highlight=animation What I normally do is plot everything (forget about interactive mode, its just too slow) and get handles to curves, then update the curves

Re: [Matplotlib-users] mplot3D plot_surface colors

2009-08-26 Thread Nicolas Bigaouette
Its great news that the 3D is receiving more polish :) After reading on wikipedia, wouldn't it be nicier to have Phong reflection[1] instead of Gouraud? Maybe it would be too hard, as the Gouraud seems to be implemented directly in Agg (from what others just said...) Anyway, just a suggestion

[Matplotlib-users] 3D Bar (histogram) question

2009-07-07 Thread Nicolas Bigaouette
Hi, I compiled matplotlib svn revision 7246 yesterday to try the 3D stuff. From mpl's website, an example for 3D bar plotting is shown[1]. I just don't understand the axes. From the code, shouldn't X values go from 0 to 20, instead of 0 to 400 000 like shown on the graph? Where does these values

[Matplotlib-users] Subplot order

2007-01-15 Thread Nicolas Bigaouette
Hi, I want to compare data and I am doing so with subplots. Ideally, I would like the subplot command to fill the columns before filling the rows as it is doing right now. Now: subpot(221) = 1st row, 1st column subpot(222) = 1st row, 2nd column subpot(223) = 2nd row, 1st column subpot(224) = 2nd

Re: [Matplotlib-users] 3D surface: Updating data?

2007-01-04 Thread Nicolas Bigaouette
Anyone? :( Message original Sujet: 3D surface: Updating data? Date: Thu, 21 Dec 2006 11:28:43 -0500 De: Nicolas Bigaouette [EMAIL PROTECTED] Pour: matplotlib-users@lists.sourceforge.net Hi, I've been using matplotlib for 2D graphing since two years. Data (3D array) is created

[Matplotlib-users] 3D surface: Updating data?

2006-12-26 Thread Nicolas Bigaouette
Hi, I've been using matplotlib for 2D graphing since two years. Data (3D array) is created with a Fortran program and ploted using imshow() at a particular plane. 3D data is created at each time iteration and saved in a file. For the plotting part, a first imshow() is called with zero values to