AxesCore
- class pysmithchart.core.AxesCore(*args, **kwargs)[source]
Bases:
objectCore functionality for SmithAxes including initialization and configuration.
This class is designed to be used as a mixin with matplotlib.axes.Axes via multiple inheritance. Many methods that appear to be missing (like set_aspect, tick_params, text, etc.) are actually provided by Axes at runtime.
Attributes Summary
Methods Summary
clear()Clear the Smith chart axes.
Gets the default values for matplotlib parameters.
update_scParams([sc_dict, reset])Update scParams for the current instance.
Attributes Documentation
- name = 'smith'
Methods Documentation
- clear()[source]
Clear the Smith chart axes.
Resets the chart to a clean state. Called automatically during __init__ and when user explicitly calls plt.cla().
- update_scParams(sc_dict=None, reset=False, **kwargs)[source]
Update scParams for the current instance.
- Parameters:
sc_dict (dict, optional) – Dictionary of parameters to update using dot notation. Example: {‘grid.Z.major.color’: ‘blue’, ‘axes.Z0’: 75}
reset (bool, optional) – If True, resets scParams to default values before updating.
**kwargs – Additional key-value pairs (must use dot notation).
- Raises:
KeyError – If an invalid parameter key is provided.
Note
Parameters must use dot notation (e.g., ‘grid.Z.major.color’, not ‘grid.Z.major_color’). Use shortcuts like Z0, datatype in __init__ instead.