@@ -197,19 +197,24 @@ def set_top_view(self):
197
197
198
198
def _init_axis (self ):
199
199
'''Init 3D axes; overrides creation of regular X/Y axes'''
200
- self .w_xaxis = axis3d .XAxis ('x' , self .xy_viewLim .intervalx ,
201
- self .xy_dataLim .intervalx , self )
202
- self .xaxis = self .w_xaxis
203
- self .w_yaxis = axis3d .YAxis ('y' , self .xy_viewLim .intervaly ,
204
- self .xy_dataLim .intervaly , self )
205
- self .yaxis = self .w_yaxis
206
- self .w_zaxis = axis3d .ZAxis ('z' , self .zz_viewLim .intervalx ,
207
- self .zz_dataLim .intervalx , self )
208
- self .zaxis = self .w_zaxis
200
+ self .xaxis = axis3d .XAxis ('x' , self .xy_viewLim .intervalx ,
201
+ self .xy_dataLim .intervalx , self )
202
+ self .yaxis = axis3d .YAxis ('y' , self .xy_viewLim .intervaly ,
203
+ self .xy_dataLim .intervaly , self )
204
+ self .zaxis = axis3d .ZAxis ('z' , self .zz_viewLim .intervalx ,
205
+ self .zz_dataLim .intervalx , self )
206
+ # Provide old aliases
207
+ self .w_xaxis = self .xaxis
208
+ self .w_yaxis = self .yaxis
209
+ self .w_zaxis = self .zaxis
209
210
210
211
for ax in self .xaxis , self .yaxis , self .zaxis :
211
212
ax .init3d ()
212
213
214
+ def get_zaxis (self ):
215
+ '''Return the ``ZAxis`` (`~.axis3d.Axis`) instance.'''
216
+ return self .zaxis
217
+
213
218
def _get_axis_list (self ):
214
219
return super ()._get_axis_list () + (self .zaxis , )
215
220
@@ -2446,20 +2451,19 @@ def bar3d(self, x, y, z, dx, dy, dz, color=None,
2446
2451
6. +X
2447
2452
2448
2453
zsort : str, optional
2449
- The z-axis sorting scheme passed onto
2450
- :func:`~mpl_toolkits.mplot3d.art3d.Poly3DCollection`
2454
+ The z-axis sorting scheme passed onto `~.art3d.Poly3DCollection`
2451
2455
2452
2456
shade : bool, optional (default = True)
2453
2457
When true, this shades the dark sides of the bars (relative
2454
2458
to the plot's source of light).
2455
2459
2456
2460
**kwargs
2457
2461
Any additional keyword arguments are passed onto
2458
- :class:`~mpl_toolkits.mplot3d. art3d.Poly3DCollection`
2462
+ `~. art3d.Poly3DCollection`.
2459
2463
2460
2464
Returns
2461
2465
-------
2462
- collection : Poly3DCollection
2466
+ collection : `~.art3d. Poly3DCollection`
2463
2467
A collection of three dimensional polygons representing
2464
2468
the bars.
2465
2469
"""
0 commit comments