The ASCIIMathML plugin also contains ASCIIsvg, a powerful tool for creating graphs of functions. What's great about ASCIIsvg is that we can use simple commands to create quite complex graphs and diagrams.
Let's start by including a graph of a simple function in our course using ASCIIsvg, in this case a graph of y=x2. Note that for this exercise I'm going to use Firefox, which includes built-in support for SVG graphics. Don't worry! We'll look at how other browsers support SVG in a later section.
I'm going to include my graph on a Moodle web page. I've chosen a topic, clicked on the Add a resource drop-down list, and selected Compose a web page:
1. We can specify the function we want to plot directly into the HTML editor. I'm going to plot this graph in the simplest way possible by using a single command: plot(x^2). Don't forget to enclose the ASCIIsvg commands in single quotes:
2. Scroll down and click on the Save and display button...