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 #81850 is a reply to message #81752] Tue, 23 October 2012 10:34 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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 16:04:32 PDT 2025

Total time taken to generate the page: 0.00270 seconds