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