Plot data read from a URL


The plot below obtains its data from an ASCII data file at a URL. It shows certain features of the plotter.


If your browser recognized the applet tag, you would see an applet here.

Note that color is disabled, and individual marks are used for the first ten data sets. After that, the marks are recycled, so the eleventh data set is indistinguishable from the first. (Had we used color, we would be able to distinguish up to 110 distinct datasets, although the Plot class will only currently display up to 64). Also note that the first two data sets are connected with lines, but the remaining data sets are not. The ranges for the horizontal and vertical axes are computed automatically from the data, but the tick marks for the horizontal axis are specified explicitly in the ASCII file. This is why they appear as words rather than numbers. Note further that each axis and each data set is labeled by a string given in the data file. For details about the file format, see the documentation for the Plot and PlotBox classes.


Up to the Example index - Back to a Fourier series approximation - Forward to sinusoids plotted with impulses
Copyright © 1997, The Regents of the University of California. All rights reserved.
Last updated: 10/07/97, comments to: eal@eecs.berkeley.edu