Search Locate Previous Next Contents

chDraw – add arbitrary polylines

This allows you to draw arbitrary polylines over your charts, for example to add small diagrams, draw boxes around points, join points which are not normally in sequence, and so on.

chPlot 2 4 3              
chDraw chMapCoords 2 2½1 2, 3 3
View chClose

This will join the first to the last data point with a solid line using the colour of the last chart plotted. The columns of the ‘draw’ matrix give the (x,y) values in the two-column case. Note the mapping from chart co-ordinates to absolute values in points.

If three or more columns or arrays are passed:

Note that if you draw your diagrams before the plot, you should call chSet 'nowipe' to prevent Rain from clearing the plotting space and probably wiping part or all of your artwork.



Continue to: chFix – update property directly
© Copyright Causeway Graphical Systems Ltd 2003