Navigation: Standard Controls > Analog Plot > Drawings >

Absolute Coordinates

 

 

 

 

With Analog plots, absolute coordinates are based on the 0,0 being lower left and 100,100 upper right regardless of the axis settings.

 

When using a drawing instruction, absolute coodinates (and height, width) are suffixed with an 'a'.

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

 

In this examples, some coordinates use absolute and others do not.

 

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

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

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

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

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

 

 

Note that shifting around the plot axis will shift some aspects of the drawings, but those coordinates suffixed with 'a' do not change. Drawing 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.maxConstDrawings. The drawing can be deleted by reseting the plot or using !plot.clearConstDrawings. The last may be deleted with !plot.deleteConstDrawing.

 

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

 

Using relative Coordinates, the images will not be locked in place.

 

 

 

Copyright © 2024 SelmaWare Solutions, LLC