@@ -1190,7 +1190,7 @@ def plot_boundaries(
1190
1190
]
1191
1191
1192
1192
for bc_spec , shape in new_boundaries :
1193
- ax = self ._plot_boundary_condition (shape = shape , boundary_spec = bc_spec , ax = ax , swap_axes = swap_axes )
1193
+ ax = self ._plot_boundary_condition (shape = shape , boundary_spec = bc_spec , ax = ax )
1194
1194
1195
1195
# clean up the axis display
1196
1196
ax = self .add_ax_lims (axis = axis , ax = ax , swap_axes = swap_axes )
@@ -1220,11 +1220,11 @@ def _get_bc_plot_params(self, boundary_spec: HeatChargeBoundarySpec) -> PlotPara
1220
1220
return plot_params
1221
1221
1222
1222
def _plot_boundary_condition (
1223
- self , shape : Shapely , boundary_spec : HeatChargeBoundarySpec , ax : Ax , swap_axes : bool = False
1223
+ self , shape : Shapely , boundary_spec : HeatChargeBoundarySpec , ax : Ax
1224
1224
) -> Ax :
1225
1225
"""Plot a structure's cross section shape for a given boundary condition."""
1226
1226
plot_params_bc = self ._get_bc_plot_params (boundary_spec = boundary_spec )
1227
- ax = self .plot_shape (shape = shape , plot_params = plot_params_bc , ax = ax , swap_axes = swap_axes )
1227
+ ax = self .plot_shape (shape = shape , plot_params = plot_params_bc , ax = ax )
1228
1228
return ax
1229
1229
1230
1230
@staticmethod
@@ -1454,6 +1454,7 @@ def _construct_heat_charge_boundaries(
1454
1454
structures : list [Structure ],
1455
1455
plane : Box ,
1456
1456
boundary_spec : list [HeatChargeBoundarySpec ],
1457
+ swap_axes : bool = False ,
1457
1458
) -> list [tuple [HeatChargeBoundarySpec , Shapely ]]:
1458
1459
"""Compute list of boundary lines to plot on plane.
1459
1460
@@ -1476,7 +1477,7 @@ def _construct_heat_charge_boundaries(
1476
1477
shapes = [] # structure name, structure medium, shape, bounds
1477
1478
for structure in structures :
1478
1479
# get list of Shapely shapes that intersect at the plane
1479
- shapes_plane = plane .intersections_with (structure .geometry )
1480
+ shapes_plane = plane .intersections_with (structure .geometry , swap_axes = swap_axes )
1480
1481
1481
1482
# append each of them and their medium information to the list of shapes
1482
1483
for shape in shapes_plane :
@@ -1600,7 +1601,6 @@ def plot_sources(
1600
1601
source_max = source_max ,
1601
1602
shape = shape ,
1602
1603
ax = ax ,
1603
- swap_axes = swap_axes ,
1604
1604
)
1605
1605
1606
1606
# clean up the axis display
0 commit comments