Re: [Matplotlib-users] x=, y=, z=??

2007-01-13 Thread Mark Bakker
I think this is an excellent idea, Eric.
I would love it if this feature would also work in contour.
The difficulty I see is that an axis needs to know whether an image or
contour plot has been added. If so, it needs access to the array with
the data to show the z value.
I am thinking out loud here.
So an axis needs an attribute 'showz' or something, that gets set, and
a pointer to the array needs to be set. What to do when you overlay
two contour plots? Not sure yet. Then the toolbar needs to be modified
to take that into account and call the appropriate function to display
the z value.
I think this would be a great feature.
Does anybody have suggestions for a clean implementation?
Mark

>
> Message: 3
> Date: Fri, 12 Jan 2007 14:13:50 +0100
> From: Eric Emsellem <[EMAIL PROTECTED]>
> Subject: [Matplotlib-users] x=, y=, z=??
> To: matplotlib-users@lists.sourceforge.net
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Dear all,
>
> I am coming back to an issue for which I didn't get a direct answer
> (except for a very nice module from Angus McMorland!):
>
> - at the moment different backends in mpl automatically provides, when
> an image (or a plot) is displayed with e.g. imshow (plot), the
> coordinates x and y directly in the toolbar.
>
> - When it is indeed an image wich is displayed, it would, in my opinion
> makes a LOT of sense to also display the "z" coordinate, namely the
> 'intensity' value of the pixel of the image on which the cursor is
> standing.
>
> The questions are then: does this also make sense to you, and if yes,
> would it be possible for someone to implement it as an intrinsic feature
> of mpl backends?  (I am not competent to answer the feasibility part
> here, although the module Angus nicely provided on the list is an
> excellent example, even if it adds one more layer which may be avoidable).
>
> thanks for any input here!
> cheers
>
> Eric
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Broken axis

2007-01-13 Thread Alexander 'Leo' Bergolth
Hi!

I'd like to plot a graph with a certain range left out to allow better
visualization of outliers. The axis should appear broken at this
position to indicate that the scaling is interrupted.
(pychart calls it "zap marks", see
http://home.gna.org/pychart/doc/module-zap.html)

Is there a way to do this with matplotlib?

Thanks,
--leo
-- 
---
[EMAIL PROTECTED]Fax: +43-1-31336-906050
Zentrum fuer Informatikdienste - Wirtschaftsuniversitaet Wien - Austria

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Broken axis

2007-01-13 Thread Eric Firing
Alexander 'Leo' Bergolth wrote:
> Hi!
> 
> I'd like to plot a graph with a certain range left out to allow better
> visualization of outliers. The axis should appear broken at this
> position to indicate that the scaling is interrupted.
> (pychart calls it "zap marks", see
> http://home.gna.org/pychart/doc/module-zap.html)
> 
> Is there a way to do this with matplotlib?

No, this has been requested but never implemented.  Someone may have 
come up with a manual method, but it would require essentially drawing 
the axes manually from primitives, and manipulating the values of the 
outliers.

Eric
> 
> Thanks,
> --leo


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] animating surfaces

2007-01-13 Thread Matthew Koichi Grimes
Hmm, I tried that but it didn't work.

I also tried just using ax3d.hold(False), and also tried 
pylab.hold(False), but both times I still kept on getting multiple surfaces.

-- Matt

Eric Firing wrote:
> Matthew Koichi Grimes wrote:
>> I'd like to plot a 3D surface and its contours as the surface 
>> evolves. When I do it by simply calling plot_surface and/or contour3D 
>> multiple times, the plot doesn't clear the old surface before 
>> plotting the new one, so I get a whole bunch of surfaces accumulating 
>> in the same plot:
>>
>> 
>> import pylab as P
>> import matplotlib.axes3d as P3
>>
>> # bad: plots multiple surfaces on top of each other
>> def animatePlot():
>>
>> P.ion()  fig = P.gcf()
>> ax3d = P3.Axes3D(self.fig)
>>for i in xrange(100):
>> x, y, z = getLatestData(i)
>> ax3d.plot_surface( x, y, z )
>> ax3d.contour3D( x, y, z )
>> P.draw()
>
> Try putting "ax3d.hold(False)" before the plot_surface, and 
> "ax3d.hold(True)" after it.
>
> I haven't tried it, but I think this should accomplish what you want.
>
> Eric


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users