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

Home » Public Forums » archive » Re: How to rotate a 2-D plot and fit in the same view area ?
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: How to rotate a 2-D plot and fit in the same view area ? [message #7130] Sat, 28 September 1996 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Whoa Gary...

I had just congratulated myself for solving a ticklish problem for
you before breakfast (and on a Saturday, no less) and I thought
I would reward myself with a nice cup of coffee and a bagel.
However, no sooner had I put the first swipe of cream chesse
on the bagel then the horrible thought hit me...

Yikes! My solution won't work!

What I wrote in my example program was:

> ; Transform the position coordinates to account for NO rotation
> ; in the display window
>
> temp = position(0)
> position(0) = 1.0 - position(2)
> position(2) = temp

What I *should* have written was:

; Transform the position coordinates to account for NO rotation
; in the display window

p = position
p = [p(1), p(0), p(3), p(2)]
offset = 1.0 - p(2)
p(2) = offset + (p(2) - p(0))
p(0) = offset
position = p

My first solution worked for your example program (at least
it *looked* like it worked), but wouldn't work for the general
case. I have tested this solution more thoroughly and I believe
it works generally.

Now, I am in deep trouble with my wife for not getting the
laundry started, I've got to coach a soccer game, and ....

Let's just same I'm turning the d*** computer OFF!

Yours,

David

--
David Fanning, Ph.D.
Phone: 970-221-0438
Fax: 970-221-4728
E-Mail: davidf@fortnet.org
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: idl can not read TIFF image
Next Topic: Re: Plot Widget under IDL

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

Current Time: Fri Oct 10 11:29:06 PDT 2025

Total time taken to generate the page: 0.31869 seconds