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

Home » Public Forums » archive » Re: cgHistoplot over plot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: cgHistoplot over plot [message #81125 is a reply to message #81124] Wed, 15 August 2012 06:57 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
ece writes:

> I have a question about cgHistoplot.
>
> I have two different data, and I want to over plot the histograms. With this great program,cgHistoplot, I have nice separate histograms but I couldn't figure out how to combine them in a single histogram.
>
> I use :
> cgHistoplot, data1, BINSIZE=0.01,xrange=[0.0,0.36],MININPUT=0.0,backcolorname='w hite',output='data1.eps',TITLE='data 1Distribution'
> cgHistoplot, data2, BINSIZE=0.01,xrange=[0.0,0.36], /FILL,POLYCOLOR='royal blue', TITLE='Data2',MININPUT=0.0,output='data2.eps'
>
> I want to have data2 over plotted on data 1 with a different color, and save it as one eps file.
>
> Is this possible?

cgHistoplot, data1, BINSIZE=0.01,xrange=[0.0,0.36], $
MININPUT=0.0,backcolorname='white', $
TITLE='data 1Distribution', /Window
cgHistoplot, data2, BINSIZE=0.01,xrange=[0.0,0.36], $
/FILL,POLYCOLOR='royal blue', TITLE='Data2',$
MININPUT=0.0, /OPLOT, /AddCmd
cgControl, Output='myhistograms.eps'

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: contour plot irregular data within a polygon
Next Topic: Labeling Lines of Data

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

Current Time: Fri Oct 10 07:17:00 PDT 2025

Total time taken to generate the page: 0.88239 seconds