marc desmarais wrote:
I found a typo at "http://matplotlib.sourceforge.net/users/navigation_toolbar.html"
"If you press ‘x’ or ‘y’ while panning the motion will be contrained to the x or y axis, respectively."
Thank you. Now it is fixed.
BTW, do you know how to constrain the panning function to left/right programmatically? I'm try to make a logic analyzer.
I don't know offhand, but I don't think that capability is in place. I find holding down a key while panning to be a bit awkward, so I am also interested in alternatives.
Finally, is this the best place to post my questions? (I suspect not...)
Yes, matplotlib-users is the right place. I assume you intended to "reply-to-all" on that last one, so intended it to go to the list. Apparently the settings on this list are unusual in that one must explicitly "reply-to-all"; it is not automatic that one's reply goes to the list.
Eric
···
--- On *Mon, 8/10/09, Eric Firing /<efiring@...202...>/* wrote:
From: Eric Firing <efiring@...202...>
Subject: Re: [Matplotlib-users] pylab
To: "marc desmarais" <mdesm2005@...9...>
Cc: matplotlib-users@lists.sourceforge.net
Date: Monday, August 10, 2009, 7:22 PM
marc desmarais wrote:
> Are there still two pylabs? Are the following two web pages
referring to the same pylab?
Not exactly:
>
This one is a vision or proposal, open for discussion:
> http://www.scipy.org/PyLab
This one is real:
> http://matplotlib.sourceforge.net/
>
The pylab interface to the matplotlib plotting library has some of
the characteristics the author of the first link is talking about,
but the trend has been away from some aspects of that vision, not
towards it.
For more about the real pylab, see
http://matplotlib.sourceforge.net/faq/usage_faq.html#matplotlib-pylab-and-pyplot-how-are-they-related
> I'm a bit confused (trying to get the Scipy, Numpy, Pylab,
Matplolib story straight, before I plunge in)
Numpy is the common core, providing N-dimensional arrays and math;
matplotlib is a plotting library, using numpy; scipy is a collection
of math/science functionality, also using numpy.
But don't forget ipython, which provides a nice interactive shell:
http://ipython.scipy.org/moin/
Eric
>
> Marc Desmarais
> Long Beach, CA, 90814
To create a cursor that only pans horizontally, I’m thinking of writing a special version of drag_pan in backend_bases.py It would call drag_pan in axes.py with the key argument set to ‘x’
Any advice, suggestions?
backend_bases.py :
def my_drag_pan(self, event):
‘the drag callback in pan/zoom mode’
for a, ind in self._xypress:
a.drag_pan(self._button_pressed, 'x', event.x, event.y)
self.dynamic_update()
···
In axes, up/down motion is prevented when the ‘x’ key is down
axes.py
def drag_pan(self, button, key, x, y):
…
elif key==‘x’:
dy = 0
…
Marc Desmarais
Long Beach, CA, 90814
— On Wed, 8/12/09, Eric Firing <efiring@…202…> wrote:
From: Eric Firing <efiring@…202…>
Subject: Re: [Matplotlib-users] pylab
To: “marc desmarais” <mdesm2005@…9…>
Cc: “matplotlib-users” matplotlib-users@lists.sourceforge.net
Date: Wednesday, August 12, 2009, 9:59 AM
marc desmarais wrote:
I found a typo at “http://matplotlib.sourceforge.net/users/navigation_toolbar.html”
“If you press ‘x’ or ‘y’ while panning the motion will be contrained to the x or y axis, respectively.”
Thank you. Now it is fixed.
BTW, do you know how to constrain the panning function to left/right
programmatically? I’m try to make a logic analyzer.
I don’t know offhand, but I don’t think that capability is in place. I find holding down a key while panning to be a bit awkward, so I am also interested in alternatives.
Finally, is this the best place to post my questions? (I suspect not…)
Yes, matplotlib-users is the right place. I assume you intended to “reply-to-all” on that last one, so intended it to go to the list. Apparently the settings on this list are unusual in that one must explicitly “reply-to-all”; it is not automatic that one’s reply goes to the list.
Eric
— On Mon, 8/10/09, Eric Firing /<efiring@…202…>/ wrote:
From: Eric Firing <efiring@...202...>
Subject: Re: [Matplotlib-users] pylab
To: "marc desmarais" <mdesm2005@...9...>
Cc: matplotlib-users@lists.sourceforge.net
Date: Monday, August 10, 2009, 7:22 PM
marc desmarais wrote:
> Are there still two pylabs? Are the following two web pages
referring to the same pylab?
Not exactly:
>
This one is a vision or proposal, open for
discussion:
> [http://www.scipy.org/PyLab](http://www.scipy.org/PyLab)
This one is real:
> [http://matplotlib.sourceforge.net/](http://matplotlib.sourceforge.net/)
>
The pylab interface to the matplotlib plotting library has some of
the characteristics the author of the first link is talking about,
but the trend has been away from some aspects of that vision, not
towards it.
For more about the real pylab, see
[http://matplotlib.sourceforge.net/faq/usage_faq.html#matplotlib-pylab-and-pyplot-how-are-they-related](http://matplotlib.sourceforge.net/faq/usage_faq.html#matplotlib-pylab-and-pyplot-how-are-they-related)
> I'm a bit confused (trying to get the Scipy, Numpy, Pylab,
Matplolib story straight, before I plunge in)
Numpy is the common core, providing N-dimensional arrays and math;
matplotlib is a plotting library, using numpy; scipy is a collection
of math/science functionality, also using numpy.
But don't forget ipython, which provides a nice interactive shell:
[http://ipython.scipy.org/moin/](http://ipython.scipy.org/moin/)
Eric
>
> Marc
Desmarais
> Long Beach, CA, 90814