#include <math.h> #include <chplot.h> int main() { int numpoints = 36; array double x[numpoints], y[numpoints]; int i; class CPlot plot; linspace(x, 0, 360); y = sin(x*M_PI/180); // Y-axis data. plot.axisRange(PLOT_AXIS_X, -30, 390, 30); plot.axisRange(PLOT_AXIS_Y, -1, 1, .25); plot.grid(PLOT_ON); plot.data2D(x, y); plot.plotting(); }