@@ -113,6 +113,8 @@ class Text3D(mtext.Text):
113
113
axlim_clip : bool, default: False
114
114
Whether to hide text outside the axes view limits.
115
115
116
+ .. versionadded:: 3.10
117
+
116
118
Other Parameters
117
119
----------------
118
120
**kwargs
@@ -169,6 +171,8 @@ def set_3d_properties(self, z=0, zdir='z', axlim_clip=False):
169
171
See `.get_dir_vector` for a description of the values.
170
172
axlim_clip : bool, default: False
171
173
Whether to hide text outside the axes view limits.
174
+
175
+ .. versionadded:: 3.10
172
176
"""
173
177
self ._z = z
174
178
self ._dir_vec = get_dir_vector (zdir )
@@ -212,6 +216,8 @@ def text_2d_to_3d(obj, z=0, zdir='z', axlim_clip=False):
212
216
See `.get_dir_vector` for a description of the values.
213
217
axlim_clip : bool, default: False
214
218
Whether to hide text outside the axes view limits.
219
+
220
+ .. versionadded:: 3.10
215
221
"""
216
222
obj .__class__ = Text3D
217
223
obj .set_3d_properties (z , zdir , axlim_clip )
@@ -260,6 +266,8 @@ def set_3d_properties(self, zs=0, zdir='z', axlim_clip=False):
260
266
See `.get_dir_vector` for a description of the values.
261
267
axlim_clip : bool, default: False
262
268
Whether to hide lines with an endpoint outside the axes view limits.
269
+
270
+ .. versionadded:: 3.10
263
271
"""
264
272
xs = self .get_xdata ()
265
273
ys = self .get_ydata ()
@@ -337,6 +345,8 @@ def line_2d_to_3d(line, zs=0, zdir='z', axlim_clip=False):
337
345
See `.get_dir_vector` for a description of the values.
338
346
axlim_clip : bool, default: False
339
347
Whether to hide lines with an endpoint outside the axes view limits.
348
+
349
+ .. versionadded:: 3.10
340
350
"""
341
351
342
352
line .__class__ = Line3D
@@ -506,6 +516,8 @@ def __init__(self, *args, zs=(), zdir='z', axlim_clip=False, **kwargs):
506
516
See `.get_dir_vector` for a description of the values.
507
517
axlim_clip : bool, default: False
508
518
Whether to hide patches with a vertex outside the axes view limits.
519
+
520
+ .. versionadded:: 3.10
509
521
"""
510
522
super ().__init__ (* args , ** kwargs )
511
523
self .set_3d_properties (zs , zdir , axlim_clip )
@@ -525,6 +537,8 @@ def set_3d_properties(self, verts, zs=0, zdir='z', axlim_clip=False):
525
537
See `.get_dir_vector` for a description of the values.
526
538
axlim_clip : bool, default: False
527
539
Whether to hide patches with a vertex outside the axes view limits.
540
+
541
+ .. versionadded:: 3.10
528
542
"""
529
543
zs = np .broadcast_to (zs , len (verts ))
530
544
self ._segment3d = [juggle_axes (x , y , z , zdir )
@@ -572,6 +586,8 @@ def __init__(self, path, *, zs=(), zdir='z', axlim_clip=False, **kwargs):
572
586
See `.get_dir_vector` for a description of the values.
573
587
axlim_clip : bool, default: False
574
588
Whether to hide path patches with a point outside the axes view limits.
589
+
590
+ .. versionadded:: 3.10
575
591
"""
576
592
# Not super().__init__!
577
593
Patch .__init__ (self , ** kwargs )
@@ -592,6 +608,8 @@ def set_3d_properties(self, path, zs=0, zdir='z', axlim_clip=False):
592
608
See `.get_dir_vector` for a description of the values.
593
609
axlim_clip : bool, default: False
594
610
Whether to hide path patches with a point outside the axes view limits.
611
+
612
+ .. versionadded:: 3.10
595
613
"""
596
614
Patch3D .set_3d_properties (self , path .vertices , zs = zs , zdir = zdir ,
597
615
axlim_clip = axlim_clip )
@@ -698,6 +716,8 @@ def set_depthshade(
698
716
depthshade_minalpha : float, default: None
699
717
Sets the minimum alpha value used by depth-shading.
700
718
If None, use the value from rcParams['axes3d.depthshade_minalpha'].
719
+
720
+ .. versionadded:: 3.11
701
721
"""
702
722
if depthshade_minalpha is None :
703
723
depthshade_minalpha = rcParams ['axes3d.depthshade_minalpha' ]
@@ -725,6 +745,8 @@ def set_3d_properties(self, zs, zdir, axlim_clip=False):
725
745
See `.get_dir_vector` for a description of the values.
726
746
axlim_clip : bool, default: False
727
747
Whether to hide patches with a vertex outside the axes view limits.
748
+
749
+ .. versionadded:: 3.10
728
750
"""
729
751
# Force the collection to initialize the face and edgecolors
730
752
# just in case it is a scalarmappable with a colormap.
@@ -879,6 +901,8 @@ def set_3d_properties(self, zs, zdir, axlim_clip=False):
879
901
See `.get_dir_vector` for a description of the values.
880
902
axlim_clip : bool, default: False
881
903
Whether to hide paths with a vertex outside the axes view limits.
904
+
905
+ .. versionadded:: 3.10
882
906
"""
883
907
# Force the collection to initialize the face and edgecolors
884
908
# just in case it is a scalarmappable with a colormap.
@@ -942,6 +966,8 @@ def set_depthshade(
942
966
depth.
943
967
depthshade_minalpha : float
944
968
Sets the minimum alpha value used by depth-shading.
969
+
970
+ .. versionadded:: 3.11
945
971
"""
946
972
if depthshade_minalpha is None :
947
973
depthshade_minalpha = rcParams ['axes3d.depthshade_minalpha' ]
@@ -1065,11 +1091,16 @@ def patch_collection_2d_to_3d(
1065
1091
depthshade : bool, default: None
1066
1092
Whether to shade the patches to give a sense of depth.
1067
1093
If None, use the value from rcParams['axes3d.depthshade'].
1094
+ axlim_clip : bool, default: False
1095
+ Whether to hide patches with a vertex outside the axes view limits.
1096
+
1097
+ .. versionadded:: 3.10
1098
+
1068
1099
depthshade_minalpha : float, default: None
1069
1100
Sets the minimum alpha value used by depth-shading.
1070
1101
If None, use the value from rcParams['axes3d.depthshade_minalpha'].
1071
- axlim_clip : bool, default: False
1072
- Whether to hide patches with a vertex outside the axes view limits.
1102
+
1103
+ .. versionadded:: 3.11
1073
1104
"""
1074
1105
if isinstance (col , PathCollection ):
1075
1106
col .__class__ = Path3DCollection
@@ -1133,6 +1164,8 @@ def __init__(self, verts, *args, zsort='average', shade=False,
1133
1164
axlim_clip : bool, default: False
1134
1165
Whether to hide polygons with a vertex outside the view limits.
1135
1166
1167
+ .. versionadded:: 3.10
1168
+
1136
1169
*args, **kwargs
1137
1170
All other parameters are forwarded to `.PolyCollection`.
1138
1171
0 commit comments