MakerPlot-J's Analog Plots support a wide range of drawing features to customize, annotate or visualize the plots.
Features of Drawing for the Analog Plot:
•Large selection of drawing instructions.
•Drawings based on coordinates relative to the X and Y Axis or absolute regardless of axis values.
•Flexible color assignments including 'alpha' or opaqueness of a drawing. Please see Processing Concepts, Colors.
•Drawings may be normal, being deleted with the next reset, or constant and survive plot resets. Please see Normal or Constant.
•Drawing instructions may be used to plot live data accessing data values and arrival times.
•Drawings may be constrained to the plot grid or extend into the full plot area.
•Properties allow a maximum number drawings to be held for both normal and constant drawings. maxDrawings, maxConstDrawings. After the maximum is met, the oldest will be deleted.
•Beyond drawing shapes and images, properties and instructions support the number held in memory and clearing the graphics drawn, such as:
•Example drawing shapes in the grid area: !plot.drawCircle 50, 50, 90, RED, 5
•Example drawing shapes extending outside the grid area: !plot.drawFullCircle 50, 50, 100, GREEN, 5
•Example drawing using absolute coordinates (0,0 to 100,100) instead of plot axis values !plot.drawCircle 50a,50a,10a,BLUE, 3
•Example drawing using absolute coordinates (0,0 to 100,100) instead of plot axis values as a Constant drawing - Survives a plot reset. @plot.drawCircle 50a,50a,5a,BLACK, 3
•!plot.clearDrawings // clears all normal drawings
•!plot.clearConstDrawings // clears all constant drawings
•!plot.deleteDrawing // deletes the LAST normal drawing
•!plot.deleteConstDrawing // deletes the LAST constant drawing
•!plot.maxDrawings=2000 // sets maximum number of normal drawings before deleting oldest
•!plot.maxConstDrawings=2000 // sets maximum number of constant drawings before deleting oldest
For options and help with drawing instructions, use the Debug/CLI (F3), Code Editor to list the drawing instructions, select one and right-click it, or enter it and type F1. The Controls Viewer (F6) also lists all instructions in a tree format.
There are instructions for drawing images as well, such as !drawImage, which allows rotation of images.
Please see Portable Interface Development for information about image paths.
|