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 #81848 is a reply to message #79820] Tue, 23 October 2012 12:17 Go to previous message
DAVIDE LENA is currently offline  DAVIDE LENA
Messages: 22
Registered: September 2011
Junior Member
Sorry to say that it didn't make any change.
BTW, these problems are particularly true with cgHistoplot (when I make other plots I solve the problem - somehow). Anywya, in the real of eps, I feel that I don't really have control on what I plot with IDL.

PS_Start, Encapsulated=1, FILENAME = 'Histog_OI_Ha.eps', CHARSIZE=1, Font = -1
multiplot,[2,1], /init
cgHistoplot, map1[wn], BINSIZE=bs, /FREQUENCY, YRANGE= yr, YTICKFORMAT='(F4.2)', DataColor='black', /OUTLINE
XYOUTS, .3, .8, 'Narrow', /NORMAL, CHARSIZE=2
multiplot
cgHistoplot, map2[wb], BINSIZE=bs, /FREQUENCY, YRANGE= yr, YTICKFORMAT='(A1)', YTITLE='', DataColor='black', /OUTLINE
XYOUTS, .8, .8, 'Broad', /NORMAL, CHARSIZE=2
PS_End
!P.MULTI=0


On Tuesday, October 23, 2012 1:34:48 PM UTC-4, David Fanning wrote:
> Davide writes:
>
>
>
>> 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.
>
>
>
> This is a classic case of getting !P.MULTI all screwed up.
>
> Take out that last MULTIPLOT command before the PS_END
>
> and add an !P.MULTI=0 *after* PS_END. That will probably
>
> help a LOT. :-)
>
>
>
> 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:51:34 PDT 2025

Total time taken to generate the page: 0.00184 seconds