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

Home » Public Forums » archive » cgHistoplot and multiplot
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 and multiplot [message #81718 is a reply to message #79820] Mon, 15 October 2012 09:03 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
dxl1840@g.rit.edu writes:

>
> I am trying to plot two histograms on a eps file using cgHistoplot and the few lines listed below.
> The plot comes out nicely on the X terminal, yet on the eps file it is just a mess...
> Anybody knows how to fix it?
> Thanks in advance.
>
>
> SET_PLOT, 'ps'
> erase
> multiplot,[2,1]
> DEVICE, /encapsulated, BITS_PER_PIXEL=8, FILENAME = patheps + strcompress('sigma.eps',/remove_all), /portrait, FONT_SIZE=15, /color, xsize=30, ysize= 20
>
> multiplot
> cgHistoplot, map1[w1], BINSIZE = 5., XRANGE = xr, YRANGE=yr, YTICKFORMAT='(F4.2)', YTITLE='', DataColor='green', /FREQUENCY, /OUTLINE
>
> multiplot
> cgHistoplot, map2[w2], BINSIZE = 5., XRANGE = xr, YRANGE=yr, YTICKFORMAT='(A1)', YTITLE='', DataColor='green', /FREQUENCY, /OUTLINE
>
> multiplot, [1,1], /init

Actually, there is probably a lot more wrong than just the character size.
But, when I set the PostScript device up correctly, there doesn't seem
to be a problem. This works, for example:

PS_Start, Encapsulated=1, Filename='test.eps'
multiplot,[2,1], /init

multiplot
cgHistoplot, map1[w1], BINSIZE = 5., XRANGE = xr, YRANGE=yr, $
YTICKFORMAT='(F4.2)', YTITLE='', DataColor='green', /FREQUENCY, /OUTLINE

multiplot
cgHistoplot, map2[w2], BINSIZE = 5., XRANGE = xr, YRANGE=yr, $
YTICKFORMAT='(A1)', YTITLE='', DataColor='green', /FREQUENCY, /OUTLINE

multiplot, [1,1], /init
PS_End

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Simple question in IDL, looking for solution, thank you
Next Topic: Simple question in IDL, looking for solution, thank you

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

Current Time: Wed Oct 08 17:30:42 PDT 2025

Total time taken to generate the page: 0.00220 seconds