Re: tvimage and multiplot [message #74889] |
Fri, 04 February 2011 13:50 |
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  |
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  |
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  |
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.")
|
|
|