Plot unit tests

Post Reply
bjkwon
Posts: 111
Joined: September 26th, 2018, 9:36 pm

Plot unit tests

Post by bjkwon » September 5th, 2020, 1:39 pm

x=[1 2 8 9 10 13 20];
y=[4 2 2 0 7 9 10]
plot(y)
plot(x,y)
plot(x,y,"o")
figure
plot(y,"r")
fig1=figure(1)
plot(fig1,x,y,"c^-")
figure(2).plot(y,"mv-")
figure(2).line(y(end:1),"v-")
fig1.line(x,y(end:1),"rv")
// Did gcf change to 1?
//==============
y=[4 2 2 0 7 9 10]
plot(y)
delete(1)

Post Reply