Skip to content

Commit 75fbd50

Browse files
committed
plot_eps() works again (with transpose=True or False)
1 parent 2b54ab8 commit 75fbd50

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tidy3d/components/scene.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,6 @@ def plot_structures_property(
10161016
shape=shape,
10171017
ax=ax,
10181018
eps_component=eps_component,
1019-
transpose=transpose,
10201019
)
10211020
else:
10221021
# For custom medium, apply pcolormesh clipped by the shape.
@@ -1034,7 +1033,6 @@ def plot_structures_property(
10341033
ax,
10351034
grid,
10361035
eps_component=eps_component,
1037-
transpose=transpose,
10381036
)
10391037

10401038
if cbar:
@@ -1359,7 +1357,7 @@ def plot_heat_charge_property(
13591357
vlim: Optional[tuple[float, float]] = None,
13601358
transpose: bool = False,
13611359
) -> Ax:
1362-
"""Plot each of scebe's components on a plane defined by one nonzero x,y,z coordinate.
1360+
"""Plot each of scene's components on a plane defined by one nonzero x,y,z coordinate.
13631361
The thermal conductivity is plotted in grayscale based on its value.
13641362
13651363
Parameters
@@ -1412,6 +1410,7 @@ def plot_structures_heat_conductivity(
14121410
ax: Ax = None,
14131411
hlim: Optional[tuple[float, float]] = None,
14141412
vlim: Optional[tuple[float, float]] = None,
1413+
transpose: bool = False,
14151414
) -> Ax:
14161415
"""Plot each of scene's structures on a plane defined by one nonzero x,y,z coordinate.
14171416
The thermal conductivity is plotted in grayscale based on its value.
@@ -1462,6 +1461,7 @@ def plot_structures_heat_conductivity(
14621461
ax=ax,
14631462
hlim=hlim,
14641463
vlim=vlim,
1464+
transpose=transpose,
14651465
)
14661466

14671467
@equal_aspect
@@ -1699,6 +1699,7 @@ def plot_heat_conductivity(
16991699
ax: Ax = None,
17001700
hlim: Optional[tuple[float, float]] = None,
17011701
vlim: Optional[tuple[float, float]] = None,
1702+
transpose: bool = False,
17021703
):
17031704
"""Plot each of scebe's components on a plane defined by one nonzero x,y,z coordinate.
17041705
The thermal conductivity is plotted in grayscale based on its value.
@@ -1745,6 +1746,7 @@ def plot_heat_conductivity(
17451746
ax=ax,
17461747
hlim=hlim,
17471748
vlim=vlim,
1749+
transpose=transpose,
17481750
)
17491751

17501752
""" Misc """

0 commit comments

Comments
 (0)