NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi Oliver, > I have an image plot which shows the magnitude of the data using an RGB > map. http://mcba5.phys.unsw.edu.au:8180/~oliverm/ImagePlot.jpg > > The user can modify the ranges of the plot scales, thus dynamically > changing the value each colour represents. > > I’d like to add a colour scale next to the plot so that it always shows > the correct values the colous represents.This is because in most cases > the plot is saved as a GIF and printed for analysis later… > > Is there a builtin feature of visad to do this ? Unfortunately, VisAD does not have a built-in color scale for its displays. There are (at least) two things you can try: 1. Construct a LabeledColorWidget and put it in a JPanel with the DisplayImpl. You may want to call the setMaximumSize() method of the LabeledColorWidget to minimize the amount of screen space used for the interactive color graphs (i.e., only show the color wedge). 2. Build a small oblong image with a wedge of values of the RealType you have mapped to RGB, and place it in a corner of your display. It will appear as a color wedge. You'd have to explicitly construct any Text labels. Good luck, Bill
visad
archives: