Discussion:
[Graph-support] Rotating
Jakub Mikołaj Cichowicz
2009-06-09 18:54:25 UTC
Permalink
Hey,
I have 2 questions:

1. I have inserted an elipse using a parametric function f = f(x(t), y(t)) and I
would like to rotate by some angle (let`s say "phi").
I know I can do it like that f. = f.(x.(t), y.(t)) where x.(t) =
x(t)*cos(phi)+y(t)*sin(phi), y.(t) = x(t)*(-sin(phi))+y(t)*cos(phi) but I`m in a
situation where I have to rotate many elipses and the angle values are very very
exact (many digits)

2. I noticed there is a option of making user-defined functions, does it also
apply to such cases as in point 1.?

I`d love to browse the program help (F1) but I use windows vista and the help
won`t open for me.
Thanks in advance for any answer
Jakub
Matthew Low
2009-06-09 22:55:50 UTC
Permalink
Is there a question you wanted to ask in point 1?

Matt
Post by Jakub Mikołaj Cichowicz
Hey,
1. I have inserted an elipse using a parametric function f = f(x(t), y(t)) and I
would like to rotate  by some angle (let`s say "phi").
I know I can do it like that f. = f.(x.(t), y.(t)) where x.(t) =
x(t)*cos(phi)+y(t)*sin(phi), y.(t) = x(t)*(-sin(phi))+y(t)*cos(phi) but I`m in a
situation where I have to rotate many elipses and the angle values are very very
exact (many digits)
2. I noticed there is a option of making user-defined functions, does it also
apply to such cases as in point 1.?
I`d love to browse the program help (F1) but I use windows vista and the help
won`t open for me.
Thanks in advance for any answer
Jakub
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Graph-support mailing list
https://lists.sourceforge.net/lists/listinfo/graph-support
Jakub Mikołaj Cichowicz
2009-06-10 09:13:06 UTC
Permalink
Post by Matthew Low
Is there a question you wanted to ask in point 1?
Matt
Yes, is there any option/function that can do this automatic for me? Because I
have
hundreds of elipses and doing it manually means spending loads of time and also
gives the risk that I make a typing mistake of any sort. So I thought that
maybe there is a simple option that could save me the trouble :).

And I just thought of another question, is there any way to inverse the axis so
that the X axis is vertical growing north, and Y axis is horizontal growing
east? I would like only the axis to change but y=f(x) to remain, not to change
to x=f(y)
Ivan Johansen
2009-06-10 23:02:18 UTC
Permalink
Post by Jakub Mikołaj Cichowicz
And I just thought of another question, is there any way to inverse the axis so
that the X axis is vertical growing north, and Y axis is horizontal growing
east? I would like only the axis to change but y=f(x) to remain, not to change
to x=f(y)
I am a little unsure what it is you are asking? You can change the label
shown for the axes in the Edit|Axes dialog.

Best regards
Ivan Johansen

Ivan Johansen
2009-06-10 22:53:44 UTC
Permalink
Post by Jakub Mikołaj Cichowicz
1. I have inserted an elipse using a parametric function f = f(x(t), y(t)) and I
would like to rotate by some angle (let`s say "phi").
I know I can do it like that f. = f.(x.(t), y.(t)) where x.(t) =
x(t)*cos(phi)+y(t)*sin(phi), y.(t) = x(t)*(-sin(phi))+y(t)*cos(phi) but I`m in a
situation where I have to rotate many elipses and the angle values are very very
exact (many digits)
Currently there is no easy way to do this. However it should be possible
when I get Graph 4.4 finished.
Post by Jakub Mikołaj Cichowicz
2. I noticed there is a option of making user-defined functions, does it also
apply to such cases as in point 1.?
Yes, but I don't know how much easier it is. You can create two custom
functions:
RotateX(x,y,phi)=x*cos(phi)+y*sin(phi)
RotateY(x,y,phi)=-x*sin(phi)+y*cos(phi)

Now you can use them to rotate any function.
If you have the function x(t)=sin(t), y(t)=t^2 you can rotate it pi/4 by
creating a new function:
x(t)=RotateX(sin(t), t^2, pi/4), y(t)=RotateY(sin(t), t^2, pi/4)

I have attached a file that shows this.
Post by Jakub Mikołaj Cichowicz
I`d love to browse the program help (F1) but I use windows vista and the help
won`t open for me.
The beta version has a help file that works under Windows Vista. You can
also download it as pdf here: http://padowan.dk/bin/Graph-English.pdf

Best regards
Ivan Johansen
Loading...