comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Histogram within a colorbar
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Histogram within a colorbar [message #92216] Fri, 30 October 2015 07:51 Go to next message
Pawan is currently offline  Pawan
Messages: 9
Registered: April 2006
Junior Member
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.

Thanks, Pawan
Re: Histogram within a colorbar [message #92217 is a reply to message #92216] Fri, 30 October 2015 08:12 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Finding strings values common to two (large!) arrays
Next Topic: Subscripting help

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 09:13:52 PDT 2025

Total time taken to generate the page: 0.00424 seconds