PLOT

SmallBASIC syntax groups: 


Graphics command PLOT


10
20  PLOT xmin, xmax USE f(x)
30
Graph of f(x).


See examples


If there is insufficient information on this page and you wish learn more about PLOT, please send an email to smallbasic@gmail.com. You can help to improve information about PLOT by submitting an article using the comments link below. Note, an offline language reference text file is now avialable – see the Download section.

PLOT 0, 2*PI USE SIN(x)

Comments

Apparently we are now plotting with black dots as default on default black background, so need a COLOR call to see the dots.

'plot test.bas from SmallBASIC ie PLOT minx, maxx, use f(x)
color 0,15:cls  '<=========== plot use to work without need for this
PLOT 0, 2*PI USE SIN(x)
PLOT 0, 2*PI USE rnd*sin(x) '<==== this is cool!
pause