#include
#include
int main() {
int numpoints = 36;
array double x[numpoints], y[numpoints];
class CPlot plot;
linspace(x, 0, 360);
y = sin(x*M_PI/180);
plot.label(PLOT_AXIS_X, "date");
plot.label(PLOT_AXIS_Y, "value");
plot.data2D(x, y);
plot.plotType(PLOT_PLOTTYPE_IMPULSES, 0);
plot.axisRange(PLOT_AXIS_X, 0, 400);
plot.ticsLabel(PLOT_AXIS_X, "2/1", 0, "2/2", 50,
"2/3", 100, "2/4", 150, "2/5", 200, "2/6", 250,
"2/7", 300, "2/8", 350, "2/9", 400);
plot.ticsLabel(PLOT_AXIS_Y, "the bottom", -1, "the middle", 0,
"the top", 1);
plot.plotting();
}