[Matplotlib-users] displaying only one colorbar...

2007-06-04 Thread fred
Hi, My issue is quite simple: I reload several times an image with the colorbar enabled, and thus, I have several colorbars, not only one. How can I disable this, and thus, get only one colorbar ? Cheers, -- http://scipy.org/FredericPetit --

Re: [Matplotlib-users] displaying only one colorbar... [fixed]

2007-06-07 Thread fred
Eric Firing a écrit : > You may need to post a small code example so we can see what you are > doing; but an interactive example using ipython -pylab may give you > enough information to answer your question: Hi , Not really ;-), but no problem. I got a fix. The trick is to pass axes colorbar a

[Matplotlib-users] contour & colorbar...

2007-06-11 Thread fred
Hi, Please look at the short example attached showing the issue. I want to display only one contour line, with value 0.8. Obviously, the color associated with this contour line is bad (blue instead of red color). I think the reason is that the contour has its own colormap, so for only one valu

Re: [Matplotlib-users] [Fwd: Re: contour & colorbar...]

2007-06-12 Thread fred
Eric Firing a écrit : > im = imshow(a) > cb = colorbar() > cs = contour(a, [0.8], norm = im.norm, cmap=im.cmap) > cb.add_lines(cs) > > Is this in fact what you want? Exactly, perfect ! Thanks a lot. Cheers, -- http://scipy.org/FredericPetit -

[Matplotlib-users] keeping zoom...

2007-06-18 Thread fred
Hi, I want to keep the image zoomed to the same factor for all my images. If I try ipython -pylab imshow(rand(50,50)) then zoom with the mouse and redo imshow(rand(50,50)) the zoom factor is not kept, ie xrange/yrange are still (0,50). How can I keep the zoom factor ? TIA. Cheers, -- ht

Re: [Matplotlib-users] keeping zoom...

2007-06-18 Thread fred
Jouni K. Seppänen a écrit : > Try: > > imshow(rand(50,50)) > # zoom with mouse > xlim=getp(gca(), 'xlim'); ylim = getp(gca(), 'ylim') > imshow(rand(50,50)) > setp(gca(), 'xlim', xlim); setp(gca(), 'ylim', ylim) > Well..., I forgot to mention something, sorry ;-) I already apply this trick: I use

Re: [Matplotlib-users] keeping zoom...

2007-06-18 Thread fred
fred a écrit : > Maybe I'm doing something wrong ? Yes :-) You only need to set extent to the const xmin/xmax & ymin/ymax and not those you get with get_xlim & get_ylim. Sorry for the noise. Cheers, -- http://scipy.o

Re: [Matplotlib-users] keeping zoom...

2007-06-18 Thread fred
fred a écrit : > Sorry for the noise. Thanks anyway, Jouni, I fixed my issue thanks to you ;-) You showed me that the get_?lim methods were right, so I followed my feeling further. Cheers, -- http://scipy.org/FredericPe

Re: [Matplotlib-users] keeping zoom...

2007-06-18 Thread fred
fred a écrit : I get anoter issue now. How can I know if the displayed image has been zoomed or not (I mean not on testing xlim & ylim) ? TIA -- http://scipy.org/FredericPetit - This SF.net email is sponsored by

Re: [Matplotlib-users] multiple line title

2007-06-27 Thread fred
David D Clark a écrit : > Is there a way to make a multiple line title? I have looked through the > documentation and googled, but have not found an answer. I would like > something that looks like this > > This is the first line > second:line > title('This is the first line\nsecond:line'

Re: [Matplotlib-users] numpy and matrix operations

2007-06-28 Thread fred
Alexander Dietz a écrit : > Hi, > Hi, > I hope this is the right place to post this question, which is related > to numpy, or numeric or something else... I guess you should try scipy-user at scipy.org ml. Cheers, -- http://scipy.org/FredericPetit -

[Matplotlib-users] getting list of interpolation functions...

2007-07-19 Thread fred
Hi, How can I get the list of the available interpolation functions used by imshow() ? TIA. Cheers, -- http://scipy.org/FredericPetit - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft Visual S

Re: [Matplotlib-users] getting list of interpolation functions...

2007-07-19 Thread fred
Eric Firing a écrit : > fred wrote: >> Hi, >> >> How can I get the list of the available interpolation functions >> used by imshow() ? >> >> TIA. >> >> Cheers, >> Sorry, I was not clear. I want to get the list, not to know, in order to set

Re: [Matplotlib-users] getting list of interpolation functions...

2007-07-19 Thread fred
Eric Firing a écrit : > Fred, > > In image.py, the AxesImage.__init__() includes: > >self._interpd = { > 'nearest' : _image.NEAREST, > 'bilinear' : _image.BILINEAR, > 'bicubic' : _ima

Re: [Matplotlib-users] getting list of interpolation functions...

2007-07-19 Thread fred
Eric Firing a écrit : > > I don't understand; it seems to me that all you need is > _interpd.keys(), and since this is specific to AxesImage, it should be > an attribute of that class, say AxesImage.interpolations. You can't > add interpolation methods, and they have no meaning outside AxesImag

Re: [Matplotlib-users] matplotlib digest...

2007-08-03 Thread fred
Michael Droettboom a écrit : > Darren Dale wrote: > >> On Friday 03 August 2007 08:03:31 am fred wrote: >> >> >>> Is there any tarball for ml archives ? >>> >>> >> You can search the user and developer archive

[Matplotlib-users] Probing scalar values...

2007-08-03 Thread fred
John Hunter a écrit : > But you can just ask us -- maybe we can help. > Ok. Well, running mpl examples (say image_demo.py), you can see the point coordinates under the pointer. Good point ;-) I would like to have the scalar value under the pointer to be displayed too. How could I do this ? I

[Matplotlib-users] matplotlib digest...

2007-08-03 Thread fred
Hi, Is there any tarball for ml archives ? In fact, I'm looking for something related to values probing (with a pointer, for example). So I want, before asking, to have a look in the archives. Cheers, -- http://scipy.org/FredericPetit ---

Re: [Matplotlib-users] Probing scalar values...

2007-08-06 Thread fred
Angus McMorland a écrit : > Since all sorts of data can be displayed in am mpl window (e.g. a > plot, a contour...) you have to tell it how to access the correct > scalar value to display. You could do this with the > motion_notify_event. Register it during init, something like: > > self.canvas.mp

Re: [Matplotlib-users] Simple Matplotlib usage and Gnuplot

2007-08-27 Thread fred
1:2 with lp > > For matplotlib, perhaps something like the following: > >fplot("filename", cols=(1,5), delimiter=',', numheader=2) > +1 -- Fred, who struggled against octave/gnuplot for many years too (too much years ;-) -

Re: [Matplotlib-users] Simple Matplotlib usage and Gnuplot

2007-08-28 Thread fred
John Hunter a écrit : > I matplotlib svn (as of June) there is a plotfile function. From the > docstring: Great ! Thanks. -- http://scipy.org/FredericPetit - This SF.net email is sponsored by: Splunk Inc. Still grepping

[Matplotlib-users] fonts_demo.py warnings

2006-09-22 Thread fred
Hi the list, I have looked for in mailing-list archive, but did not find anything relevant. I use matplotlib 0.87-5 and I want to try some examples concerning fonts in .examples/. When I run fonts_demo.py, I get the following messages : :~...matplotlib-0.87.5/examples/{58}/> python fonts_demo.p

[Matplotlib-users] some curves not legended

2006-09-22 Thread fred
Hi the list, Is it possible to have some curves not legended ? A sample example is better : http://fredantispam.free.fr/foo.png I whish the pointed curves to be not displayed in the legend box. How can I do this ? Cheers, -- « Python, c'est un peu comme la baïonnette en 14, faut toujours so

[Matplotlib-users] Plotting with custom symbols

2009-02-24 Thread Fred Mailhot
ith zero offset) with the text in question, and somehow hide the actual point itself (is that even possible?). Is there something easier/more obvious that I'm missing? Thanks! Fred. -- Open Source Business Conference

[Matplotlib-users] Matplotlib Windows binaries - problem

2010-11-26 Thread Fred Pollard
sites installed! Cheers, Fred -- Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology.

Re: [Matplotlib-users] Vertical bar - making the bar fixed width

2007-08-24 Thread Fred Ludlow
.0)) # Redraw draw() Fred - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE

Re: [Matplotlib-users] Vertical bar - making the bar fixed width

2007-08-24 Thread Fred Ludlow
Alen Ribic wrote: > Thanks Fred. > > Thant did the trick. However now, when I have many plots on x axis, > the last few plot shoot of the end of the x axis. It seems to start > the plotting the middle move to the right. Do I just have to adjust > the xlim on the axes[0]? I fiddl

Re: [Matplotlib-users] reversing the y axis

2007-08-24 Thread Fred Ludlow
# Get min and max from current axes y_min, y_max = gca().get_ylim() # Set the other way round for current axes gca().set_ylim(y_max, y_min) # Redraw draw() Emre Ayd?n wrote: > hi. i'm a new user of matplotlib. i've searched through the arhieves > of the mailing list but couldn't find a quick so

Re: [Matplotlib-users] Vertical bar - making the bar fixed width

2007-08-25 Thread Fred Ludlow
need to change: for i in xrange(N): text(i, 0, " %s" etc...) to: for i in ind: text(i, 0, etc...) in order to keep the text lined up right. Hope that helps, Fred Alen Ribic wrote: > Thanks again Fred. Its looking much better now. However, one la

[Matplotlib-users] Point-specific colors with scatter

2008-03-13 Thread Fred Mailhot
mples and can't seem to find quite what I'm looking for. A sample script or indication of where to look in the docs would be appreciated. Many thanks! Fred. -- Research is what I'm doing when I don't know what I'm doing.