#include <math.h>
#include <chplot.h>

int main() {
    array double x[12], y[12];
    string_t title="Month tics",                      // Define labels.
             xlabel="x",
             ylabel="y";
    class CPlot plot;

    linspace(x, 0, 12);
    y = x.*x;
    plot.ticsMonth(PLOT_AXIS_X);
    plot.title(title);
    plot.label(PLOT_AXIS_X, xlabel);
    plot.label(PLOT_AXIS_Y, ylabel);
    plot.data2D(x, y);
    plot.plotting();
}