Plot coordinate pairs: Difference between revisions
→{{header|EasyLang}}
(Replacing "gnuplot" with "gnuplotlib".) |
|||
Line 1,265:
clear
linewidth 0.5
move 10
line 10
line 95
textsize 3
n = len x[]
m = 0
for i = 1 to n
if y[i] > m
m = y[i]
.
.
linewidth 0.1
sty = m div 9
for i
move 2
text i * sty
move 10
line 95
.
stx = x[n] div 9
for i
move i * 9 + 10
text i * stx
move i * 9 + 10
line i * 9 + 10
.
color 900
linewidth 0.5
for i = 1 to n
x = x[i] * 9 / stx + 10
y =
if i = 1
move x y
else
line x y
.
.
</syntaxhighlight>
|