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

Home » Public Forums » archive » Re: cgContour / P.Multi / PDF
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: cgContour / P.Multi / PDF [message #79862] Thu, 19 April 2012 06:22 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> 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. :-)

Well, it's 7:20. I had to have my usual frustration
with function graphics first this morning! :-)

You can find the updated files here:

http://www.idlcoyote.com/programs/cgwindow.pro
http://www.idlcoyote.com/programs/cgcmdwindow__define.pro

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 #79869 is a reply to message #79862] Wed, 18 April 2012 22:35 Go to previous messageGo to next message
Matteo is currently offline  Matteo
Messages: 28
Registered: August 2011
Junior Member
David,

please play two tennis games instead of one. I'll be happy to wait.
Re: cgContour / P.Multi / PDF [message #79872 is a reply to message #79869] Wed, 18 April 2012 18:35 Go to previous messageGo to next message
David Fanning is currently offline  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 Go to previous message
Matteo is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Problem with variables in memory
Next Topic: Re: Manipulation with 4D data in iVolume tool

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

Current Time: Wed Oct 08 15:06:35 PDT 2025

Total time taken to generate the page: 0.00434 seconds