[Thread Prev][Thread Next][Index]

Re: [ferret_users] Flipping colorbar

Hi Savin,
You could use "shade/set" followed by the "PPL SHAKEY" command as in the following demo:

! the regular way
set view upper ; shade/i=1:10/j=1:10 i+j
! invert the color bar
set view lower ;shade/i=1:10/j=1:10/set i+j
ppl shakey,,,,,,,,,`($PPL$YLEN)+($PPL$YORG)`,($PPL$YORG)
ppl shade

To learn more about SHAKEY see the manual. The symbols for plot dimensions used can be seen (after creating a plot) with PPL LISTSYM. SHAKEY needs the y-values in inches of the desired bottom and top of the color bar and the above simply flips the defaults. If you wanted other values, or wanted to flip a horizontal color bar you could modify the SHAKEY parameters. Note that in PPL syntax the string of commas ',,,,,,,' says to use the default value.

There are probably other ways to do the flipping too.
Good luck,
Savin wrote:

Dear ferret users,

One simple question.

Can anyone please tell me how to flip the colorbar so that the colors are in reverse order than what is drawn using default setting?

Help will be very much appreciated.



[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement