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 
Return to the default flat view Create a new topic Submit Reply
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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Venerable Programs Retired
Next Topic: Coyote Graphics Update, Feb 4

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

Current Time: Fri Oct 10 22:03:49 PDT 2025

Total time taken to generate the page: 0.79967 seconds