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
--
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
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
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
-
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
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
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
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
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
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'
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
-
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
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
Eric Firing a écrit :
> Fred,
>
> In image.py, the AxesImage.__init__() includes:
>
>self._interpd = {
> 'nearest' : _image.NEAREST,
> 'bilinear' : _image.BILINEAR,
> 'bicubic' : _ima
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
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
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
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
---
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
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
;-)
-
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
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
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
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
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.
.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
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
# 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
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
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.
30 matches
Mail list logo