Navigation: Standard Controls > Analog Plot > Drawings >

Relative Coordinates

 

 

 

 

With Analog plots, relative coordinates are based on the Y-Axis values and the X-Axis values - typically seconds.

 

When using a drawing instruction, coordinates have no special indicators (such as an 'a' for absolute).

!plotControlName.drawRect x, y, x1, y1, color, lineWidth, rotation

 

!plot.drawRect 0,-10, 12, 10, RED, 5

!plot.drawRect 12, 20, 24, 40, GREEN, 5, 45  // with rotation

!plot.drawLine 0, 90, 48, -10, BLUE

!plot.drawFilledArc 60, 40, 10, 45, 90, ORANGE

!plot.drawImage 70, 80, 80,,\icons\fan.png,45   // image with rotation

 

 

Note that shifting around the plot axis will shift the drawings as well, but will not exceed the bounds of the gridded area unless The drawFull... instruction was used.

 

The maximum number of drawings to hold in memory is defined by plot.maxDrawings. The drawing can be deleted by reseting the plot or using !plot.clearDrawings. The last may be deleted with !plot.deleteDrawing.

 

A reset will clear the drawings, unlike when using Constant Drawings.

 

Using Absolute Coordinates, the images will be locked in place.

 

 

 

 

Copyright © 2024 SelmaWare Solutions, LLC