#include <chplot.h> int main() { double x, y, xx[2], yy[2]; string_t text; int line_type = 1, line_width = 1, datasetnum = 0; class CPlot plot; plot.axisRange(PLOT_AXIS_X, 0, 7); plot.axisRange(PLOT_AXIS_Y, 0, 5); plot.title("line Types in Ch Plot"); for (y = 4; y >= 1; y--) { for (x = 1; x <= 6; x++) { sprintf(text, "%d", line_type); linspace(xx, x, x+.5); linspace(yy, y, y); plot.data2D(xx, yy); plot.plotType(PLOT_PLOTTYPE_LINES, datasetnum, line_type, line_width); plot.text(text, PLOT_TEXT_RIGHT, x-.125, y, 0); datasetnum++; line_type++; } } plot.plotting(); }