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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: cgHistoplot over plot [message #81122] Wed, 15 August 2012 08:04 Go to next message
ece is currently offline  ece
Messages: 12
Registered: June 2011
Junior Member
Thanks for your help!
Re: cgHistoplot over plot [message #81123 is a reply to message #81122] Wed, 15 August 2012 07:37 Go to previous messageGo to next message
David Fanning is currently offline  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 #81124 is a reply to message #81123] Wed, 15 August 2012 07:30 Go to previous messageGo to next message
ece is currently offline  ece
Messages: 12
Registered: June 2011
Junior Member
Thanks!
Is it also possible to use xyouts to write '' DATA 2" on top corner?
Re: cgHistoplot over plot [message #81125 is a reply to message #81124] Wed, 15 August 2012 06:57 Go to previous messageGo to next 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.")
Re: cgHistoplot over plot [message #93084 is a reply to message #81123] Mon, 25 April 2016 06:08 Go to previous messageGo to next message
ann[1] is currently offline  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
Re: cgHistoplot over plot [message #93086 is a reply to message #93084] Mon, 25 April 2016 11:04 Go to previous messageGo to next message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
https://www.idlcoyote.com/cg_tips/embedsymbols.php

I think you are looking for \exp or \up. --Wayne

On Monday, April 25, 2016 at 9:08:55 AM UTC-4, anjal...@gmail.com wrote:

> Hi David,
>
> Is it possible to represent superscript in the title command without the ^ symbol? (like, cm^2)
>
> Thanks,
> Anjali
Re: cgHistoplot over plot [message #93107 is a reply to message #93086] Thu, 28 April 2016 07:22 Go to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
On Monday, April 25, 2016 at 1:04:22 PM UTC-5, wlandsman wrote:
> https://www.idlcoyote.com/cg_tips/embedsymbols.php
>
> I think you are looking for \exp or \up. --Wayne
>

Or use LaTeX:

cgplot, dist(10), xtitle='cm$\tex^2$'

https://www.idlcoyote.com/cg_tips/textoidl.php
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Wed Oct 08 09:13:45 PDT 2025

Total time taken to generate the page: 0.00460 seconds