The colormap display widget, RtdImageColorRamp , at the bottom of the image also uses an instance of the RtdImage widget with generated data to display, from left to right, equally spaced, all the colors in the colormap. The image data is generated by the rtdimage colorramp subcommand. Bindings in the colorramp window are set so that dragging with mouse button 1 will shift the colormap, dragging with Shift-1 will rotate it, dragging with button 2 will stretch or squeeze the colormap and dragging button 3 will reset the colormap back to its original state.
An RtdImageColorRamp widget can be easily created and inserted in the window hierarchy, as the following example shows:
pack [RtdImageColorRamp $this.colorramp \ -height $colorramp_height] \ -side bottom -fill x
See RtdImageColorRamp(n) for more details.
Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory