matplot plot

Simple 1D line plots with different markers, anotation and legend

HTML

<script src="http://matplot.googlecode.com/svn/trunk/demos/numeric-1.2.3.js"></script>
<link rel="stylesheet" href="https://alexander-barth.github.io/matplot/matplot.css">
<script src="https://alexander-barth.github.io/matplot/demos/matplot.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/numeric/1.2.6/numeric.min.js"></script>
<div id="plot"></div>

JavaScript

// load the peaks sample data
peaks = matplot.peaks();

// make a figure of size 500 x 400 pixels
fig = new matplot.Figure("plot", 500, 400);

// add axis to the figure
ax = fig.axes();

// pseudo color plot
ax.pcolor(peaks.x, peaks.y, peaks.z);

// add color-bar
ax.colorbar();

// draw everything
fig.draw();