AxesCore

class pysmithchart.core.AxesCore(*args, **kwargs)[source]

Bases: object

Core 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

name

Methods Summary

clear()

Clear the Smith chart axes.

get_rc_params()

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().

classmethod get_rc_params()[source]

Gets the default values for matplotlib parameters.

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.