Post Reply 
Autoscale from program call
04-18-2023, 08:01 AM (This post was last modified: 04-19-2023 05:34 AM by ftneek.)
Post: #1
Autoscale from program call
I created a function to insert a n points into the Statistics 2Var app and starts the plot view. But is there a way I can also get it to trigger autoscale from the function call? It's a little inconvenient to have some extra button presses each time.

For reference, I'm trying to recreate a plot I saw on youtube. I would also like to see if I can "animate" it by adding the points one by one, but I have I feeling I might need to invest some time learning how to use the geometry app for that.

Code:
EXPORT polar_graph(n)
BEGIN

L1:=MAKELIST(X*e^(X*i),X,1,n);
C1:=RE(L1);
C2:=IM(L1);
STARTAPP("Statistics 2Var");
STARTVIEW(1);

END;

- neek
Find all posts by this user
Quote this message in a reply
04-18-2023, 01:17 PM
Post: #2
RE: Autoscale from program call
In 'Statistics 2Var' it is the second 'View' menu entry, thus STARTVIEW(9,1) should do. (first special view is 8, second special view (autoscale) is 9.)
Find all posts by this user
Quote this message in a reply
04-18-2023, 04:44 PM
Post: #3
RE: Autoscale from program call
That did it, thanks.

Previously I had tried 10 instead since the help screen for startview mentioned autoscale, but now I know the special views correspond to the zoom options starting from label A. Much appreciated.

- neek
Find all posts by this user
Quote this message in a reply
04-18-2023, 06:19 PM
Post: #4
RE: Autoscale from program call
Actually now I'm trying to do basically the same thing, but in the geometry app. Could you suggest how to trigger autoscale in the geometry app? I'm having a little difficulty figuring it out since it doesn't appear to be a "special view".

- neek
Find all posts by this user
Quote this message in a reply
04-19-2023, 01:09 PM
Post: #5
RE: Autoscale from program call
Geometry app appears 'merely' as a 321*220 window you move around (Xmin,Ymin) and zoom in with PixSize. You have to roll your own based on what object you want to see/zoom in.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 2 Guest(s)