// load plotter
#include "plot.as"
// use case 1 (matrix)
var arrX = [0, 10, 30, 35, 44, 50, 66, 100];
var arrY = [0, 10, 55, 50, 55, 67, 40, 100];
clipPlot1.setDimension(330, 200);
clipPlot1.plot(arrX, arrY, [1, 0x009900, 100, "d"]);
// use case 2 (function)
function plotFunction(x) {
return 50*Math.cos(x/10)+50;
}
clipPlot2.setDimension(140, 120);
clipPlot2.plot(plotFunction, [0, 100]);
// use case 3 (plotter)
clipPlot3.setDimension(140, 120);
clipPlot3.setDivision(10, 5);
clipPlot3.setAxisRange(0, 5, 0, 25);
for (var i = 0; i <= 10; i++) {
clipPlot3.plot(i/2, Math.pow(i/2,2), [1, 0xCC6600, 100, "x"]);
}
Der Feedback
Für den Fall, dass Ihnen das Programm gefällt und Sie es auf
Ihrer Seite einsetzen wollen, wäre ich froh um einen
Link zur entsprechenden Seite.
Die Sache wurde gewissenhaft von mir getestet, aber auf anderen Computern
können
Probleme auftreten. Ich bin deshalb auf Feedback
angewiesen: der Kontakt.