[Thread Prev][Thread Next][Index]

Re: Color Bar



Hi Retish,
	I think you are right in concluding that there is no way
to use SHAKEY to do the trick.  Here is an alternate way to get
a continuous colorbar using another fill command in a separate
viewport off to the side.  An added bonus of this perhaps is that
you can use the axis formatting commands to plan the labelling of
the colorbar.  The method is shown in the following demo - the key
is in defining a variable with values matching the levels set in
the main plot.
Good luck,
Mick

!--------------------------------------------------
! adding a continuous color bar to a plot

! the main plot

use etopo60
DEFINE VIEWPORT/XLIMITS=0,0.9/YLIMITS=0,1 main
set view main
fill/lev=(-8000,6000,200)/nokey/nolab rose

! the color bar

def axis/x=1:2:1 xcb ; def axis/y=-8000:6000:200 ycb
let cb=x[gx=xcb]-x[gx=xcb]+y[gy=ycb]
DEFINE VIEWPORT/XLIMITS=0.8,1/YLIMITS=0.2,0.8 cbar
set view cbar
fill/lev=(-8000,6000,200)/nokey/nolab/set cb
ppl axset,0,0,0,1 ; ppl axlabp,0,1 ; ppl axlen,0.5,6
ppl fill
label/nouser 0.5,6.5,0,0,0.15,@srRelief (m)
!--------------------------------------------------


|--****--****-*---*---***--***--|____spillane@pmel.noaa.gov____|
|-*__---*-----*--*-*--*--*-*--*-|_SCIENCE APPLICATIONS SUPPORT_|
|--***--*-----*-*---*-***--***--|____EPIC/Ferret/PlotPlus______|
|-----*-*-----*-*****-*----*----|__Room 2070 Bldg#3 NOAA/PMEL__|
|-****---****-*-*---*-*----*----|____Phone_:_(206)526-6780_____|




[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement