Skip to content

Commit

Permalink
add missing plot_dipole_k1 parameter to plot_latwiss, transmitter to …
Browse files Browse the repository at this point in the history
…layout plotting utility
  • Loading branch information
fsoubelet committed Oct 19, 2021
1 parent 2fee91f commit ccf0f19
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pyhdtoolkit/cpymadtools/plotters.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,7 @@ def plot_latwiss(
xoffset: float = 0,
xlimits: Tuple[float, float] = None,
plot_dipoles: bool = True,
plot_dipole_k1: bool = False,
plot_quadrupoles: bool = True,
plot_bpms: bool = False,
disp_ylim: Tuple[float, float] = (-10, 125),
Expand All @@ -603,6 +604,8 @@ def plot_latwiss(
not None, using the tuple passed.
plot_dipoles (bool): if True, dipole patches will be plotted on the layout subplot of
the figure. Defaults to True. Dipoles are plotted in blue.
plot_dipole_k1 (bool): if `True`, dipole elements with a quadrupolar gradient will have this
gradient plotted as a quadrupole patch. Defaults to `False`.
plot_quadrupoles (bool): if True, quadrupole patches will be plotted on the layout
subplot of the figure. Defaults to True. Quadrupoles are plotted in red.
plot_bpms (bool): if True, additional patches will be plotted on the layout subplot to represent
Expand Down Expand Up @@ -653,6 +656,7 @@ def plot_latwiss(
xoffset=xoffset,
xlimits=xlimits,
plot_dipoles=plot_dipoles,
plot_dipole_k1=plot_dipole_k1,
plot_quadrupoles=plot_quadrupoles,
plot_bpms=plot_bpms,
k0l_lim=k0l_lim,
Expand Down Expand Up @@ -1149,8 +1153,8 @@ def _plot_machine_layout(
not None, using the tuple passed.
plot_dipoles (bool): if True, dipole patches will be plotted on the layout subplot of
the figure. Defaults to True. Dipoles are plotted in blue.
plot_dipole_k1 (bool): if True, dipole elements with a quadrupolar gradient will have this
gradient plotted as a quadrupole patch. Defaults to False.
plot_dipole_k1 (bool): if `True`, dipole elements with a quadrupolar gradient will have this
gradient plotted as a quadrupole patch. Defaults to `False`.
plot_quadrupoles (bool): if True, quadrupole patches will be plotted on the layout
subplot of the figure. Defaults to True. Quadrupoles are plotted in red.
plot_bpms (bool): if True, additional patches will be plotted on the layout subplot to represent
Expand Down

0 comments on commit ccf0f19

Please sign in to comment.