|
Re: cgHistoplot over plot [message #81123 is a reply to message #81122] |
Wed, 15 August 2012 07:37   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
ece writes:
> Is it also possible to use xyouts to write '' DATA 2" on top corner?
It's possible, although I would use cgText. ;-)
cgText, 0.95, 0.95, Alignment=1.0, 'DATA 2', /Normal, /AddCmd
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.")
|
|
|
|
Re: cgHistoplot over plot [message #81125 is a reply to message #81124] |
Wed, 15 August 2012 06:57   |
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.")
|
|
|
Re: cgHistoplot over plot [message #93084 is a reply to message #81123] |
Mon, 25 April 2016 06:08   |
ann[1]
Messages: 9 Registered: December 2012
|
Junior Member |
|
|
On Wednesday, 15 August 2012 16:37:34 UTC+2, David Fanning wrote:
> ece writes:
>
>> Is it also possible to use xyouts to write '' DATA 2" on top corner?
>
> It's possible, although I would use cgText. ;-)
>
> cgText, 0.95, 0.95, Alignment=1.0, 'DATA 2', /Normal, /AddCmd
>
> 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.")
Hi David,
Is it possible to represent superscript in the title command without the ^ symbol? (like, cm^2)
Thanks,
Anjali
|
|
|
|
|