NRAO Home > CASA > CASA Toolkit Reference Manual
msplot.markregion - Function

1.3.3 Mark a rectangular region to flag or to investigate the data in the area.


Description

Mark a rectangular region on the plot. Each call to markflag allows one region to be drawn. Any number of successive calls can be made. This function marks and stores a list of marked regions. These regions can then be (un)flagged, or information about the marked data can be retrieved. To flag the data the (un)flagdata function must be used and to find out information about the data the locatedata function must be used.

In the case of multi-panel plots, the subplot parameter must be specified with each call. The subplot value corresponds to a row-major ordering of panels, see the subplot plot option information.

Marking the region requires two consecutive mouse clicks at the two diagonally opposite corners. A hatched rectangle will appear over the selected region. Alternative a specific region can be given to this function with the region parameter.

Arguments





Inputs

subplot

Three digits number: first digit for nx, second for ny, last for pannel number.

allowed:

int

Default:

111

region

[xmin,ymin,xmax,ymax] bounding box

allowed:

doubleArray

Default:

0.0

Returns
bool

Example

 
# mark 2 flag regions on a multi-panel plot, one in panel 1 and one  
# in panel 2.  
  tp.markflags(subplot=131, region=[100,-100,50,-50]);  
  tp.markflags(subplot=221);  

__________________________________________________________________


More information about CASA may be found at the CASA web page

Copyright 2016 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search