Post Reply 
Changing plot scaling within HPPPL program
05-27-2024, 11:31 AM
Post: #2
RE: Changing plot scaling within HPPPL program
Moving STARTVIEW(1,1) outside the DO loop will help. Like this:
Code:

EXPORT Data_Grapher()
BEGIN
LOCAL b,j;
D1:={};
D2:={};
H1(1):="D1";
H1(2):="D2";
H1(3):=4;
STARTAPP("Statistics 1Var");
FOR j FROM 0 TO 360
DO
D1:=append(D1,j);
b:=SIN(j*π/180);
D2:=append(D2,b);
0▶Xmin;
(MAX(D1)*1.1)▶Xmax;
(MIN(D2)-ABS(MIN(D2))*0.1)▶Ymin;
(MAX(D2)+ABS(MAX(D2))*0.1)▶Ymax;
END;
STARTVIEW(1,1);
END;
-road
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Changing plot scaling within HPPPL program - roadrunner - 05-27-2024 11:31 AM



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