Skip to content

Commit ba35f46

Browse files
committed
Expose separatrix kwargs setting in animate_poloidal
1 parent afbeaf0 commit ba35f46

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

xbout/plotting/animate.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def animate_poloidal(
9797
cax=None,
9898
animate_over=None,
9999
separatrix=True,
100+
separatrix_kwargs=dict(),
100101
targets=True,
101102
add_limiter_hatching=True,
102103
cmap=None,
@@ -130,6 +131,8 @@ def animate_poloidal(
130131
Dimension over which to animate, defaults to the time dimension
131132
separatrix : bool, optional
132133
Add dashed lines showing separatrices
134+
separatrix_kwargs : dict, optional
135+
Options to pass to the separatrix plotter (e.g. line color)
133136
targets : bool, optional
134137
Draw solid lines at the target surfaces
135138
add_limiter_hatching : bool, optional
@@ -277,7 +280,7 @@ def animate_poloidal(
277280
targets = False
278281

279282
if separatrix:
280-
plot_separatrices(da_regions, ax, x=x, y=y)
283+
plot_separatrices(da_regions, ax, x=x, y=y, **separatrix_kwargs)
281284

282285
if targets:
283286
plot_targets(da_regions, ax, x=x, y=y, hatching=add_limiter_hatching)

0 commit comments

Comments
 (0)