Skip to content

Commit

Permalink
Expose separatrix kwargs setting in animate_poloidal
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekryjak committed May 28, 2024
1 parent afbeaf0 commit ba35f46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xbout/plotting/animate.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def animate_poloidal(
cax=None,
animate_over=None,
separatrix=True,
separatrix_kwargs=dict(),
targets=True,
add_limiter_hatching=True,
cmap=None,
Expand Down Expand Up @@ -130,6 +131,8 @@ def animate_poloidal(
Dimension over which to animate, defaults to the time dimension
separatrix : bool, optional
Add dashed lines showing separatrices
separatrix_kwargs : dict, optional
Options to pass to the separatrix plotter (e.g. line color)
targets : bool, optional
Draw solid lines at the target surfaces
add_limiter_hatching : bool, optional
Expand Down Expand Up @@ -277,7 +280,7 @@ def animate_poloidal(
targets = False

if separatrix:
plot_separatrices(da_regions, ax, x=x, y=y)
plot_separatrices(da_regions, ax, x=x, y=y, **separatrix_kwargs)

if targets:
plot_targets(da_regions, ax, x=x, y=y, hatching=add_limiter_hatching)
Expand Down

0 comments on commit ba35f46

Please sign in to comment.