Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1488
News FAQ
Search Home


next up previous contents index
Next: imageprofilesupport.plotter - Function Up: imageprofilesupport - Tool Previous: imageprofilesupport.nprofiles - Function


imageprofilesupport.plot - Function



Package general
Module images
Tool imageprofilesupport


Plot the profile


Synopsis
plot(xautoscale, yautoscale, which)


Arguments

xautoscale in Autoscale abcissa ?
    Allowed: T or F
    Default: T
yautoscale in Autoscale ordinate ?
    Allowed: T or F
    Default: T
which in Ordinate index
    Allowed: Integer or unset
    Default: All


Returns
T or fail



Description
This function plots all or the specified ordinate profile.

Every time you call functions makeordinate or setordinate a new ordinate profile is added to the display. Each of these functions returns an index which you can use here to specify via argument which which profile you want to see. By default, all profiles available are displayed.

By default the abcissa and ordinates are autoscaled - the ranges are worked out from all of the current profiles available.

If you turn off x-autoscaling, then the new plot is drawn with the current abcissa range (e.g. from a zoom).

If you turn off y-autoscaling, then the new plot is drawn with the y-range provided via the call back function setyrangecallback is used. If there is no callback, then the current range will be used.



Example
- im := image('ngc1313.cube')              
- csys := im.coordsys()                    
- shp := im.shape()                        
-
- p := imageprofilesupport(csys=csys, shp=shp, 
                           widgetset=dws)  
-
- f1 := dws.frame()                        
- axis := 3 	                           
- p.setprofileaxis(axis);
- p.makemenus()
-
- pos := csys.referencepixel()             
- p.makeabcissa(pos)                       
-
- blc := pos; blc[3] := 1                  
- trc := pos; trc[3] := shp[3]
- r := drm.box(blc, trc)
- id1 := p.makeordinate (im, r)                    # Profile 1
-
- r := drm.box()                           
- id2 := p.makeordinate (im, r)                    # Profile 2
-
- p.plot(which=id1)                                # Plot profile 1
- p.plot(which=id2)                                # Plot profile 2
- p.plot()                                         # Plot all profiles




next up previous contents index
Next: imageprofilesupport.plotter - Function Up: imageprofilesupport - Tool Previous: imageprofilesupport.nprofiles - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01