Point-drawers are objects, which draw specific symbols, if a graph is to be plotted with the points drawstyle.
plot("file1").ds(points()).pointtype(square()); // draw with squares mplot("file2).ds(points()).pt (fsquare()); // draw with filled squares. // pt is a shorthand for pointtypeIn the above example, square and fsquare are point-drawer classes.
When graphs are plotted with the points style, a symbol is drawn at each datapoint. The type of this symbol is determined by the pointtype property of the graph, which can be set via the
graph &graph::pointtype(point_drawer &xxx); graph &graph::pt (point_drawer &xxx); // shorthand versionwhere xxx can be one of the following (an initial 'f' means 'filled')
A special pointtype (not listed in the figure) is autopoint. If one sets this point-type for a graph (this is the default), then the pointtype is chosen automatically such that the least graphs in the frame have the same pointtype. (This is only done, when the canvas is printed to a terminal, i.e. when it gets realized. Before a print, autopoint can evaluate to any other pointtype - in case you wanted to test it programmatically)
Source files: point_drawer.h point_drawer.cc