Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1488 |
|
Package | general | |
Module | images | |
Tool | imageprofilesupport |
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 |
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.
- 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