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

Home » Public Forums » archive » Re: tvimage and multiplot
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: tvimage and multiplot [message #74889] Fri, 04 February 2011 13:50
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On Feb 4, 1:57 pm, David Fanning <n...@dfanning.com> wrote:
> David Fanning writes:
>> Another way to do this is to use the new LAYOUT keyword for
>> TVImage (now cgImage), but I'm which version you are using.
>
>>    TVImage, ..., Layout[1,3,1]
>>    TVImage, ..., Layout[1,3,2]
>>    TVImage, ..., Layout[1,3,3]
>
>> You can use the MULTIMARGIN keyword if you want
>> some space between your images.
>
> Goodness, doing too many things again. :-(
>
> Got to be LAYOUT=[...], etc.
>
> 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.")

Thanks! I actually ended up combining two windows and using
position=[] because I have a couple different plot sizes.
Re: tvimage and multiplot [message #74893 is a reply to message #74889] Fri, 04 February 2011 10:57 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> Another way to do this is to use the new LAYOUT keyword for
> TVImage (now cgImage), but I'm which version you are using.
>
> TVImage, ..., Layout[1,3,1]
> TVImage, ..., Layout[1,3,2]
> TVImage, ..., Layout[1,3,3]
>
> You can use the MULTIMARGIN keyword if you want
> some space between your images.

Goodness, doing too many things again. :-(

Got to be LAYOUT=[...], etc.

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: tvimage and multiplot [message #74894 is a reply to message #74893] Fri, 04 February 2011 10:54 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> TVImage responds to the value of !P.Multi. I don't see Multiplot
> setting this variable:
>
> IDL> multiplot,[1,3]
> IDL> print, !P.MULTI
> 0 0 0 0 0
>
> Instead of Multiplot, I would set !P.Multi=[0,1,3]. I would
> also set the SAVE keyword on TVImage so your PLOTS command
> goes in the right place. Be sure to set !P.MULTI back to zeros
> when you have typed your three TVImage commands.
>
> IDL> !P.Multi=0

Another way to do this is to use the new LAYOUT keyword for
TVImage (now cgImage), but I'm which version you are using.

TVImage, ..., Layout[1,3,1]
TVImage, ..., Layout[1,3,2]
TVImage, ..., Layout[1,3,3]

You can use the MULTIMARGIN keyword if you want
some space between your images.

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: tvimage and multiplot [message #74895 is a reply to message #74894] Fri, 04 February 2011 10:50 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Gray writes:

> I'm using DG, multiplot, and tvimage to display a set of three
> images. Here's my code; can anyone tell me why my images are being
> displayed on top of each other and not in the right places?
>
> multiplot, [1,3]
> tvimage, congrid(sub1,200,200), /axes, acolor='yellow', $
> axkeywords={ticklen:0.}, /keep
> plots, 99.5, 99.5, psym=6, color=clr1
> multiplot
> tvimage, congrid(sub2,200,200), /axes, acolor='green', $
> axkeywords={ticklen:0.}, /keep
> plots, 99.5, 99.5, psym=6, color=clr1
> multiplot
> tvimage, congrid(sub3,200,200), /axes, acolor='magenta', $
> axkeywords={ticklen:0.}, /keep
> plots, 99.5, 99.5, psym=6, color=clr1
> multiplot, /reset
>
> Only the final one ends up being displayed, which probably means
> they're being overplotted. Help? Thanks!

TVImage responds to the value of !P.Multi. I don't see Multiplot
setting this variable:

IDL> multiplot,[1,3]
IDL> print, !P.MULTI
0 0 0 0 0

Instead of Multiplot, I would set !P.Multi=[0,1,3]. I would
also set the SAVE keyword on TVImage so your PLOTS command
goes in the right place. Be sure to set !P.MULTI back to zeros
when you have typed your three TVImage commands.

IDL> !P.Multi=0

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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Venerable Programs Retired
Next Topic: Coyote Graphics Update, Feb 4

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

Current Time: Wed Oct 08 15:50:05 PDT 2025

Total time taken to generate the page: 0.00727 seconds