Re: [Matplotlib-users] Getting coordinates of the zoom rectangle
On Mon, Apr 5, 2010 at 3:17 PM, Mauro Cavalcanti wrote: > Dear Gökhan, > > Thanks for your reply, but unfortunately it was not entirely helpful. > > The rectangle_selector.py exemple indeed seems to do what I want, by > means of a callback function, however in the example program this > function should print the rectangle coordinates to the screen but it > does nothing. > > Check the shell where you called the script. It updates when select a region and release the mouse. > BTW, where is the documentation for the matplotlib.widgets classes? I > could find none. > Just browse the actual source .../lib/matplotlib/widgets.py. Classes are methods are nicely documented. I would suggest you to use IPython to access the docstrings with ease. import matplotlib.widgets as w w? w. > > Best regards, > > 2010/4/5 Gökhan Sever : > > > > > > On Mon, Apr 5, 2010 at 6:39 AM, Mauro Cavalcanti > 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: mauro...@gmail.com > >> 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. > > > > -- > > Gökhan > > > > > > -- > Dr. Mauro J. Cavalcanti > P.O. Box 46521, CEP 20551-970 > Rio de Janeiro, RJ, BRASIL > E-mail: mauro...@gmail.com > Web: http://sites.google.com/site/maurobio > Linux Registered User #473524 * Ubuntu User #22717 > -- Gökhan -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Getting coordinates of the zoom rectangle
On Mon, Apr 5, 2010 at 6:39 AM, Mauro Cavalcanti 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: mauro...@gmail.com > 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. -- Gökhan -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] 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: mauro...@gmail.com Web: http://sites.google.com/site/maurobio Linux Registered User #473524 * Ubuntu User #22717 -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users