|
|
Re: cgContour / P.Multi / PDF [message #79872 is a reply to message #79869] |
Wed, 18 April 2012 18:35   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Matteo writes:
> I was wondering: if I substitute cgDisplay with cgWindow, and employ
> the /Add keyword for cgContour and cgColorbar, how come when I save
> the pdf from the GUI the document is saved in 2 pages instead of one?
> Even resiing the window deltes one of the two plots
Well, the problem here is that this isn't how you
do multiple plots in cgWindow.
It will create a one page PDF if you don't use
!P.Multi or !Y.OMargin system variables, but instead
set the cgWindow up like this:
cgWindow, WXSize=900, WYSize=500, WMulti=[0,2,1], WOYMargin=[3,10]
But, that said, when I separated cgWindow from the guts of
the program in cgCmdWindow, somehow the outside margin
keywords got lost!
I'll have to put them back, but I am due to play
my Wednesday night tennis in about 30 minutes,
so I am going to have to do this first thing in
the morning. Sorry for the delay. I'll have it
done by 7AM Colorado time tomorrow. :-)
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: cgContour / P.Multi / PDF [message #79973 is a reply to message #79862] |
Fri, 20 April 2012 13:50  |
Matteo
Messages: 28 Registered: August 2011
|
Junior Member |
|
|
David, thanks much!
Another thing I noticed that doesn't work is the xtick_get keyword,
when the /Add keyword is present.
Can that be fixed as well? I'd like to store the tick values like
this:
cgContour, data1, Levels=levels, C_Color=c_colors, /Fill, $
XStyle=1, YStyle=1, /Add , xtick_get=vt
but if I execute:
print,vt
vt is told to be undefined.
m
|
|
|