Plot coordinate pairs: Difference between revisions

(Replacing "gnuplot" with "gnuplotlib".)
Line 1,265:
clear
linewidth 0.5
move 10 397
line 10 955
line 95 955
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 =range0 0 to 910
move 2 944 -+ i * 10
text i * sty
move 10 955 -+ i * 10
line 95 955 -+ i * 10
.
stx = x[n] div 9
for i =range0 0 to 910
move i * 9 + 10 96.51
text i * stx
move i * 9 + 10 955
line i * 9 + 10 397
.
color 900
linewidth 0.5
for i = 1 to n
x = x[i] * 9 / stx + 10
y = 100 - (y[i] / sty * 10 + 5)
if i = 1
move x y
else
line x y
.
.
</syntaxhighlight>
2,083

edits