Skip to main content

Coordinate system

The coordinate system is based on the SVG specifications.

The x-axis is a horizontal line with increasing values going from left to right and the y-axis is a vertical-line with increasing values going from top to bottom.

Units​

The default units are mils. In the future, milimeters will also be supported.

Grid size​

The default display grid is 100 x 100 mils.

Angles​

Angles in the coordinate system are specified as follows in the example below:

from "std" import *

add label("angle:0")
wire left 500

branch:
wire down 500
add label("angle:90")

branch:
wire left 500
add label("angle:180")

branch:
wire up 500
add label("angle:270")

Net label angle:0: line 3:1angle:0Net label angle:90: line 8:5angle:90Net label angle:180: line 12:5angle:180Net label angle:270: line 16:5angle:270