Getting coordinates of the zoom rectangle

Dear ALL,

Good morning... Here is a question that may already have been asked
(and answered), but not to my knowledge. Matplotlib's figure windows
come with that handy navigation bar, which includes a Pan/Zoom button
and a Zoom-to-rectangle button. Once a zoom rectangle is defined on a
figure, is it possible to get the coordinates of it (that is, the
lower and upper corner coordinates which define the zoom rectangle)?
If so, how can this be done?

Thanks in advance for any reply.

With best regards,

···

--
Dr. Mauro J. Cavalcanti
P.O. Box 46521, CEP 20551-970
Rio de Janeiro, RJ, BRASIL
E-mail: maurobio@...287...
Web: http://sites.google.com/site/maurobio
Linux Registered User #473524 * Ubuntu User #22717

Hi,

Search for zoom_window.py and rectangle_selector.py in your matplotlib examples directory.

···

On Mon, Apr 5, 2010 at 6:39 AM, Mauro Cavalcanti <maurobio@…287…> wrote:

Dear ALL,

Good morning… Here is a question that may already have been asked

(and answered), but not to my knowledge. Matplotlib’s figure windows

come with that handy navigation bar, which includes a Pan/Zoom button

and a Zoom-to-rectangle button. Once a zoom rectangle is defined on a

figure, is it possible to get the coordinates of it (that is, the

lower and upper corner coordinates which define the zoom rectangle)?

If so, how can this be done?

Thanks in advance for any reply.

With best regards,

Dr. Mauro J. Cavalcanti

P.O. Box 46521, CEP 20551-970

Rio de Janeiro, RJ, BRASIL

E-mail: maurobio@…287…

Web: http://sites.google.com/site/maurobio

Linux Registered User #473524 * Ubuntu User #22717


Gökhan