vernier_scale¶
- photonforge.stencil.vernier_scale(unit, marker_length, marker_width, divider=10, gap=0, triangular_marker=False)¶
Create a Vernier scale.
- Parameters:
unit (float) – Distance between markers in the main scale.
marker_length (float) – Length of the scale markers.
marker_width (float) – Width of the scale markers.
divider (int) – Divider used for the secondary scale. The Vernier constant will be unit / divider (scale readability).
gap (float) – Distance between the main and secondary scales.
triangular_marker (bool) – Flag indicating the use of triangular markers.
- Returns:
Markers for each ruler as a tuple of 2 lists.
- Return type:
scale_1um = vernier_scale(15, 10, 2)
scale_2um = vernier_scale(15, 10, 2, divider=5, gap=-2, triangular_marker=True)