|
Re: Histogram within a colorbar [message #92217 is a reply to message #92216] |
Fri, 30 October 2015 08:12  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
PG writes:
>
> I am looking for an IDL mapping routine (or colorbar routine) which can create a histogram on the colorbar. The histogram should represents values plotted on the map.
>
> HDFLook has something very similar as shown in the following image.
>
> http://hdfeos.org/examples/images/hdflook/HDFLook_CMapWin.pn g
>
> Any pointers will be helpful.
Here you go:
data = cgDemoData(7)
cgErase
cgColorbar, CTIndex=33, /Vertical, $
Position=[0.25, 0.15, 0.75, 0.85], /Right
cgHistoplot, data, /Rotate, /NoErase, $
Position=[0.25, 0.15, 0.75, 0.85], Color='Black', /Fill
END
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|