Lesson goal: Plot an array of data

Previous: Make a Chart | Home | Next: Introduction to data files

In this lesson, you can interface to Google Charts to create a nice looking plot of a mathematical function. In order to do this, you have to fill two arrays with the $(x,y)$ pairs that you want to plot. Once done, pass these two arrays to the plot function described here, and you'll see a professional-looking plot of your arrays.
plot(x,y)
Move the mouse over a dotted box for more information.

Remember, the plot will appear at the bottom of the browser window. You might have to scroll down to see it.

Now you try. Finish the x[i]= and y[i]= lines with the x and y points that you wish to plot.

Type your code here:


See your results here: