MinorLocator
- class pysmithchart.locators.MinorLocator(n=None)[source]
Bases:
AutoMinorLocatorMinor tick locator for Smith chart axes.
This locator generates evenly spaced minor ticks between major tick values. It supports both fixed and automatic modes:
Fixed mode (n=int): Uses the same number of divisions for all intervals
Automatic mode (n=None): Adapts divisions per interval based on spacing
- ndivs
The number of divisions between major tick intervals, or None for automatic mode.
- Type:
int or None
- _ticks
Cached array of computed minor tick values.
- Type:
numpy.ndarray or None
- Parameters:
n (int or None, optional) – The number of divisions between major tick values. - If an integer: use exactly that many divisions for all intervals. - If None: automatically compute divisions per interval based on spacing. Defaults to None (automatic).
Methods Summary
__call__()Compute and return minor tick positions.
Return the computed minor tick locations without filtering.
tick_values(vmin, vmax)Call parent to find tick values.
Methods Documentation
- __call__()[source]
Compute and return minor tick positions.
Ticks are recomputed on every call to ensure they stay synchronized with the current ndivs setting and major tick locations.
If ndivs is None (automatic mode), divisions are computed adaptively per interval to maintain uniform spacing within each major interval.