2D pseudo color plot (function pcolor)
// load the peaks sample data peaks = matplot.peaks(); // make a figure of size 700 x 500 pixels fig = new matplot.Figure("plot",700,500, {renderer: matplot.RasterCanvas}); // 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();