@@ -252,6 +252,8 @@ def intersections_plane(
252
252
Position of plane in y direction, only one of x,y,z can be specified to define plane.
253
253
z : float = None
254
254
Position of plane in z direction, only one of x,y,z can be specified to define plane.
255
+ transpose : bool = False
256
+ Optional: Swap the coordinates in the plane. (This overrides the default lexicographic axis order.)
255
257
256
258
Returns
257
259
-------
@@ -273,6 +275,13 @@ def intersections_2dbox(self, plane: Box, transpose: bool = False) -> list[Shape
273
275
"""Returns list of shapely geometries representing the intersections of the geometry with
274
276
a 2D box.
275
277
278
+ Parameters
279
+ ----------
280
+ plane : Box
281
+ Plane specification.
282
+ transpose : bool = False
283
+ Optional: Swap the coordinates in the plane. (This overrides the default lexicographic axis order.)
284
+
276
285
Returns
277
286
-------
278
287
List[shapely.geometry.base.BaseGeometry]
@@ -454,6 +463,8 @@ def _pop_bounds(
454
463
----------
455
464
axis : int
456
465
Integer index into 'xyz' (0,1,2).
466
+ transpose : bool = False
467
+ Optional: Swap the coordinates in the plane. (This overrides the default lexicographic axis order.)
457
468
458
469
Returns
459
470
-------
@@ -523,6 +534,8 @@ def plot(
523
534
Specify units to use for axis labels, tick labels, and the title.
524
535
viz_spec : VisualizationSpec = None
525
536
Plotting parameters associated with a medium to use instead of defaults.
537
+ transpose : bool = False
538
+ Swap horizontal and vertical axes. (This overrides the default lexicographic axis order.)
526
539
**patch_kwargs
527
540
Optional keyword arguments passed to the matplotlib patch plotting of structure.
528
541
For details on accepted values, refer to
@@ -605,6 +618,8 @@ def _get_plot_labels(axis: Axis, transpose: bool = False) -> tuple[str, str]:
605
618
----------
606
619
axis : int
607
620
Integer index into 'xyz' (0,1,2).
621
+ transpose : bool = False
622
+ Optional: Swap horizontal and vertical plot labels. (This overrides the default lexicographic axis order.)
608
623
609
624
Returns
610
625
-------
@@ -635,7 +650,7 @@ def _get_plot_limits(
635
650
return (xmin - buffer , xmax + buffer ), (ymin - buffer , ymax + buffer )
636
651
637
652
def add_ax_lims (self , axis : Axis , ax : Ax , buffer : float = PLOT_BUFFER , transpose : bool = False ) -> Ax :
638
- """Sets the x,y limits based on ``self.bounds``.
653
+ """Sets the horizontal and vertical axis limits based on ``self.bounds``.
639
654
640
655
Parameters
641
656
----------
@@ -645,6 +660,8 @@ def add_ax_lims(self, axis: Axis, ax: Ax, buffer: float = PLOT_BUFFER, transpose
645
660
Matplotlib axes to add labels and limits on.
646
661
buffer : float = 0.3
647
662
Amount of space to place around the limits on the + and - sides.
663
+ transpose : bool = False
664
+ Optional: Swap horizontal and vertical axis limits. (This overrides the default lexicographic axis order.)
648
665
649
666
Returns
650
667
-------
@@ -685,6 +702,8 @@ def add_ax_labels_and_title(
685
702
plot_length_units : LengthUnit = None
686
703
When set to a supported ``LengthUnit``, plots will be produced with annotated axes
687
704
and title with the proper units.
705
+ transpose : bool = False
706
+ Optional: Swap horizontal and vertical axis labels. (This overrides the default lexicographic axis order.)
688
707
689
708
Returns
690
709
-------
@@ -1772,6 +1791,8 @@ def intersections_plane(
1772
1791
Position of plane in y direction, only one of x,y,z can be specified to define plane.
1773
1792
z : float
1774
1793
Position of plane in z direction, only one of x,y,z can be specified to define plane.
1794
+ transpose : bool = False
1795
+ Optional: Swap the coordinates in the plane before calculating intersections.
1775
1796
1776
1797
Returns
1777
1798
-------
@@ -1795,8 +1816,8 @@ def _intersections_normal(self, z: float, transpose: bool = False) -> list:
1795
1816
----------
1796
1817
z : float
1797
1818
Position along the axis normal to slab
1798
- transpose : bool
1799
- Optional: Swap the order of the x and y axis in the geometry data .
1819
+ transpose : bool = False
1820
+ Optional: Swap the coordinates in the plane before calculating intersections .
1800
1821
1801
1822
Returns
1802
1823
-------
@@ -1816,8 +1837,8 @@ def _intersections_side(self, position: float, axis: Axis, transpose: bool = Fal
1816
1837
Position along axis.
1817
1838
axis : int
1818
1839
Integer index into 'xyz' (0,1,2).
1819
- transpose : bool
1820
- Optional: Swap the order of the remaining two axes (the axes not equal to axis) .
1840
+ transpose : bool = False
1841
+ Optional: Swap the coordinates in the perpendicular plane before calculating intersections .
1821
1842
1822
1843
Returns
1823
1844
-------
@@ -2155,8 +2176,8 @@ def intersections_plane(
2155
2176
Position of plane in y direction, only one of x,y,z can be specified to define plane.
2156
2177
z : float = None
2157
2178
Position of plane in z direction, only one of x,y,z can be specified to define plane.
2158
- transpose: bool = False
2159
- Optional: Swap the order of the coordinates in the two remaining (unspecified) axis?
2179
+ transpose : bool = False
2180
+ Optional: Swap the coordinates in the plane before calculating intersections.
2160
2181
2161
2182
Returns
2162
2183
-------
@@ -2338,6 +2359,8 @@ def _plot_arrow(
2338
2359
If True, plots an arrow pointing in direction and one in -direction.
2339
2360
arrow_base : :class:`.Coordinate` = None
2340
2361
Custom base of the arrow. Uses the geometry's center if not provided.
2362
+ transpose : bool = False
2363
+ Swap horizontal and vertical axes. (This overrides the default lexicographic axis order.)
2341
2364
2342
2365
Returns
2343
2366
-------
@@ -3061,6 +3084,8 @@ def intersections_plane(
3061
3084
Position of plane in y direction, only one of x,y,z can be specified to define plane.
3062
3085
z : float = None
3063
3086
Position of plane in z direction, only one of x,y,z can be specified to define plane.
3087
+ transpose : bool = False
3088
+ Optional: Swap the coordinates in the plane before calculating intersections.
3064
3089
3065
3090
Returns
3066
3091
-------
@@ -3273,6 +3298,8 @@ def intersections_plane(
3273
3298
Position of plane in y direction, only one of x,y,z can be specified to define plane.
3274
3299
z : float = None
3275
3300
Position of plane in z direction, only one of x,y,z can be specified to define plane.
3301
+ transpose : bool = False
3302
+ Optional: Swap the coordinates in the plane before calculating intersections.
3276
3303
3277
3304
Returns
3278
3305
-------
0 commit comments