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

Home » Public Forums » archive » Re: !p.multi and /t3d weirdness
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: !p.multi and /t3d weirdness [message #75938] Thu, 05 May 2011 11:18
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
FÖLDY Lajos writes:

> Then am I correct that the clipping window is set up in device coordinates
> and is not transformed by t3d?

It's either device coordinates or there is a round-off
problem.

> So it does not coincide with the plot data
> window (the region enclosed by the X,Y axes) when t3d is used?

Well, as you say, it is weird. Now that I think about
it, maybe because it *is* done in device coordinates.
I never thought of that before. It is "mostly" normal
for line and contour plots. It's mostly crazy for surfaces.
But, then again, it would be if it was doing the rotations
in device coordinates. 2.5D surfaces, rotated in 3D device
coordinate space...yes, that would be weird. :-)

> Normally I can clip against the plot data window, like in
>
> !p.multi=[0,2,2]
> for j=1,4 do plot, findgen(11), xrange=[3,7]
>
> What can I do when t3d is set?

I've never had much of a problem with plots, except
for this near-the-edge clipping thing going on.

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: !p.multi and /t3d weirdness [message #75939 is a reply to message #75938] Thu, 05 May 2011 11:05 Go to previous message
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
On Thu, 5 May 2011, David Fanning wrote:

> FÖLDY Lajos writes:
>
>> I am playing with !p.multi and /t3d and I do not understand the output.
>> Try this simple example:
>>
>> surfr
>> !p.multi=[0,2,2]
>> for j=1,4 do plot, findgen(11), /t3d
>>
>> I expected four identical plots, but got two empty plots, one truncated
>> and one correct plot. Why?
>
> You are clipping your vectors at the very edge
> of your viewplane. Set the NOCLIP keyword
> and you will see what you expect.

Thanks David, that helps.

Then am I correct that the clipping window is set up in device coordinates
and is not transformed by t3d? So it does not coincide with the plot data
window (the region enclosed by the X,Y axes) when t3d is used?

Normally I can clip against the plot data window, like in

!p.multi=[0,2,2]
for j=1,4 do plot, findgen(11), xrange=[3,7]

What can I do when t3d is set?

regards,
Lajos
Re: !p.multi and /t3d weirdness [message #75941 is a reply to message #75939] Thu, 05 May 2011 10:38 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
FÖLDY Lajos writes:

> I am playing with !p.multi and /t3d and I do not understand the output.
> Try this simple example:
>
> surfr
> !p.multi=[0,2,2]
> for j=1,4 do plot, findgen(11), /t3d
>
> I expected four identical plots, but got two empty plots, one truncated
> and one correct plot. Why?

You are clipping your vectors at the very edge
of your viewplane. Set the NOCLIP keyword
and you will see what you expect.

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: Object Graphics Font Size Change
Next Topic: Re: Object Graphics Font Size Change

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

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

Total time taken to generate the page: 0.11520 seconds