@@ -2940,14 +2940,24 @@ def permutation_matrices(n):
2940
2940
2941
2941
return polygons
2942
2942
2943
+ def get_shared_z_axes (self ):
2944
+ """Return a copy of the shared axes Weakset object for z axes"""
2945
+ return self ._shared_z_axes
2946
+
2947
+ def get_shared_z_inv_axes (self ):
2948
+ """Return a copy of inverse shared axes Weakset object for z"""
2949
+ return self ._shared_z_inv_axes
2950
+
2943
2951
def unshare_z_axes (self , axes = None ):
2944
2952
"""
2945
2953
Unshare z axis.
2946
2954
2947
2955
Parameters
2948
2956
----------
2949
2957
axes: Axes
2950
- Axes to unshare, if related. None will unshare itself.
2958
+ Axes to unshare, if related.
2959
+ None will unshare itself from all shares.
2960
+ `self` will inverse unshare.
2951
2961
"""
2952
2962
self ._unshare_axes (axes , "z" )
2953
2963
@@ -2958,35 +2968,45 @@ def unshare_axes(self, axes=None):
2958
2968
Parameters
2959
2969
----------
2960
2970
axes: Axes
2961
- Axes to unshare, if related. None will unshare itself.
2971
+ Axes to unshare, if related.
2972
+ None will unshare itself from all shares.
2973
+ `self` will inverse unshare.
2962
2974
"""
2963
2975
self .unshare_x_axes (axes )
2964
2976
self .unshare_y_axes (axes )
2965
2977
self .unshare_z_axes (axes )
2966
2978
2967
- def share_z_axes (self , axes ):
2979
+ def share_z_axes (self , axes , symmetric = True , transitive = True ):
2968
2980
"""
2969
2981
Share z axis.
2970
2982
2971
2983
Parameters
2972
2984
----------
2973
2985
axes: Axes
2974
2986
Axes to share.
2987
+ symmetric: Bool
2988
+ mutually share.
2989
+ transitive: Bool
2990
+ extent share to what axes shares.
2975
2991
"""
2976
- self ._share_axes (axes , 'z' )
2992
+ self ._share_axes (axes , 'z' , symmetric , transitive )
2977
2993
2978
- def share_axes (self , axes ):
2994
+ def share_axes (self , axes , symmetric = True , transitive = True ):
2979
2995
"""
2980
2996
Share x, y, z axes.
2981
2997
2982
2998
Parameters
2983
2999
----------
2984
3000
axes: Axes
2985
3001
Axes to share.
2986
- """
2987
- self .share_x_axes (axes )
2988
- self .share_y_axes (axes )
2989
- self .share_z_axes (axes )
3002
+ symmetric: Bool
3003
+ mutually share.
3004
+ transitive: Bool
3005
+ extent share to what axes shares.
3006
+ """
3007
+ self .share_x_axes (axes , symmetric , transitive )
3008
+ self .share_y_axes (axes , symmetric , transitive )
3009
+ self .share_z_axes (axes , symmetric , transitive )
2990
3010
2991
3011
2992
3012
def get_test_data (delta = 0.05 ):
0 commit comments