Sharedsupport / 2017-01-27-142848-plot.sagewsOpen in CoCalc
Author: William A. Stein
Description: Examples for support purposes.

Hi,

please, i need to display these values:

1, 2, 3, 4, 5 for X axis 10, 40, 100, 20, 35 for Y axis

In Matlab I do it so:

x = [1 2 3 4 5];
y = [10 40 100 20 35];
plot(x,y)


I send my image (graph from Matlab). Thank you very much for help!

x = [1,2,3,4,5]
y = [10,40,100,20,35]
line(zip(x,y))