I am creating math questions with geometric components such as triangles and rectangles and think plotly
would be a nice lightweight mechanism for creating these plots. But I need these plots to be static (non-interactive). I assume I can save them as PNGs
. I am hoping to generate them interactively in the browser to make it harder for content to be misappropriated.
using Plots
x = 1:10; y = rand(10,2) # 2 columns means two lines
plotly() # Set the backend to Plotly
plot(x,y,title="This is my static plot.")