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 #81752 is a reply to message #81718] Tue, 23 October 2012 09:40 Go to previous messageGo to previous message
DAVIDE LENA is currently offline  DAVIDE LENA
Messages: 22
Registered: September 2011
Junior Member
Thanks both of you for your reply.
The code that David suggested work-ed.
Unfortunately I can't find a solution that is always working. In other words: the same code sometimes works, sometimes doesn't and I can't understand why. I reset or restart IDL, still it does not work. Sometimes the plot is fine after I try some different settings (e.g. before plotting my two panels side by side, I have to plot 4 panels with multiplot,[2,2] and then go back).
Though plots are always perfects on the x terminal.
This so time consuming and frustrating!
Now I am trying to have two plots, side by side, 1 row, two columns. On the eps file IDL plots the first one taking all the space and then it overplots the second one on half of the space on the left.
Yet it seems that there are no problems when I plot the graphs in 1 col 2 rows.
I start wandering if the problem is the version of IDL (7.1.1)...

This is what I am using:

PS_Start, Encapsulated=1, FILENAME = 'test.eps', CHARSIZE=1, Font = -1, xsize=8, ysize= (8*4.5/5)

multiplot,[2,1], /init
plot, map1[wb], map2[wb], YRANGE=yr, PSYM = 2, XTITLE= greekLetter + '[km/s]', YTICKFORMAT='(F4.2)'

multiplot
plot, map3[wn], map4[wn], YRANGE=yr, PSYM = 2, XTITLE= greekLetter + '[km/s]', YTICKFORMAT='(A1)', YTITLE = ''
multiplot, [1,1], /init
PS_End

Thanks in advance for your help.
Sorry to be so annoying about this subject.


On Monday, October 15, 2012 12:03:50 PM UTC-4, David Fanning wrote:

>
>
>
>>
>
>> 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: Thu Oct 09 21:57:44 PDT 2025

Total time taken to generate the page: 0.95500 seconds