This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Ghansham, You could always create your display in the interactive mode of IDV, zoom out to get the colorbar to appear outside the display area, and save the bundle as an ISL script. Would that work? Sean > I know this option but I wanted colorbar to be outside display area. I > am afraid it is possible to get colorscale there. This is possible > through jython colorbar tag. But then colorbar tag draws colorbars for > all display controls. Just give a thought. > > On 12/26/12, Unidata IDV Support <address@hidden> wrote: > > Greetings Ghansham, > > > > This should be possible. You can do something like the following > > in Jython: > > > > ---- > > > > display_type = 'planviewcontour' > > dc = createDisplay(display_type, pressure) > > > > colorScaleInfo = dc.getColorScaleInfo() > > colorScaleInfo.setOrientation(colorScaleInfo.VERTICAL) > > colorScaleInfo.setPlacement(colorScaleInfo.LEFT) > > colorScaleInfo.setIsVisible(True) > > > > > > ---- > > > > In this case I'm dealing with a plan view contour image, > > but in general this should work (grab the colorScaleInfo > > from the display control you wish to add the colorbar, > > set the basic location properties and make it visible). > > > > Cheers, > > > > Sean > > > >> R/Sir > >> I want generate an image where SST is overlaid over IR channel. > >> But I want colorbar of SST only. Is it possible to do that? > >> > >> regards > >> Ghansham > >> > >> > > > > > > Ticket Details > > =================== > > Ticket ID: WXP-426338 > > Department: Support IDV > > Priority: Normal > > Status: Open > > > > > > Ticket Details =================== Ticket ID: WXP-426338 Department: Support IDV Priority: Normal Status: Open