TranslationComponent

class kgpy.optics.component.TranslationComponent(name=<factory>, plot_kwargs=<factory>, translation=<factory>, translation_error=<factory>)

Bases: Component[SurfaceT]

__init__(name=<factory>, plot_kwargs=<factory>, translation=<factory>, translation_error=<factory>)
Parameters
Return type

None

Attributes

dataframe

surface

transform

translation

translation_error

Methods

__init__([name, plot_kwargs, translation, ...])

copy()

rtype

typing.TypeVar(CopyableT, bound= Copyable)

copy_shallow()

rtype

typing.TypeVar(CopyableT, bound= Copyable)

plot(ax[, components, component_z, ...])

rtype

typing.List[matplotlib.lines.Line2D]

Inheritance Diagram

Inheritance diagram of kgpy.optics.component.TranslationComponent

copy()
Return type

typing.TypeVar(CopyableT, bound= Copyable)

Parameters

self (CopyableT) –

copy_shallow()
Return type

typing.TypeVar(CopyableT, bound= Copyable)

Parameters

self (CopyableT) –

plot(ax, components=('x', 'y'), component_z=None, plot_kwargs=None, transform_extra=None, to_global=False, plot_annotations=True, annotation_text_y=1.05)
Return type

typing.List[matplotlib.lines.Line2D]

Parameters
property dataframe: DataFrame
name: Name
plot_kwargs: typ.Dict[str, typ.Any]
property surface: SurfaceT
property transform: TransformList
translation: kgpy.transform.rigid.Translate
translation_error: kgpy.transform.rigid.Translate