you could do a plot with a simple command like
Code: Select all
shell("gnuplot -p -e " + """plot sin(x)/x with lines""")
or with more control
Code: Select all
dim as string plot_command
plot_command=chr(34)+"set terminal windows"
plot_command=plot_command+" color" '" monochrome"
plot_command=plot_command+" solid" '" dashed"
plot_command=plot_command+" enhanced" '" noenhanced"
plot_command=plot_command+" font 'Arial Bold,10'"
''https://www.rapidtables.com/web/color/RGB_Color.html
plot_command=plot_command+" background rgb 'cyan'" 'green'
plot_command=plot_command+" position 1,1"
plot_command=plot_command+" size 640,480"
plot_command=plot_command+" title 'sin(x)/x function plot';"
plot_command=plot_command+" plot sin(x)/x with lines"+chr(34) 'the plot command
shell("gnuplot -p -e " + plot_command)
