Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1488 |
|
Package | general | |
Module | images | |
Tool | imageprofilesupport |
im | in | The image | |
Allowed: | Image tool | ||
region | in | The region of interest | |
Allowed: | Region tool or naked record | ||
ci | in | PGPlot color index of this ordinate when plotted | |
Allowed: | Integer | ||
Default: | 1 | ||
ls | in | PGPlot line style of this ordinate when plotted | |
Allowed: | Integer | ||
Default: | 1 | ||
which | in | Which ordinate index to set | |
Allowed: | Integer or unset | ||
Default: | Next slot |
This function returns an index identifying the ordinate number that you are displaying. You can display many profiles simultaneously this way. To reset the number of profiles to zero use function setnoprofile.
You must call function setprofileaxis before calling this function so that it knows which axis is the profile axis.
- im := image('ngc1313.cube') - csys := im.coordsys() - shp := im.shape() - p := imageprofilesupport(csys=csys, shp=shp, widgetset=dws) - 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) - idx := p.makeordinate (im, r) - - p.plot(which=idx)