Skip to content

Commit e25a759

Browse files
committed
added the "swap_axes" argument to TFSF.plot() to be consistent with the other plot functions
1 parent dcde9c8 commit e25a759

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tidy3d/components/source/field.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,9 +704,10 @@ def plot(
704704
y: Optional[float] = None,
705705
z: Optional[float] = None,
706706
ax: Ax = None,
707+
swap_axes: bool = False,
707708
**patch_kwargs,
708709
) -> Ax:
709710
# call Source.plot but with the base of the arrow centered on the injection plane
710711
patch_kwargs["arrow_base"] = self.injection_plane_center
711-
ax = Source.plot(self, x=x, y=y, z=z, ax=ax, **patch_kwargs)
712+
ax = Source.plot(self, x=x, y=y, z=z, ax=ax, swap_axes=swap_axes, **patch_kwargs)
712713
return ax

0 commit comments

Comments
 (0)