@@ -192,19 +192,24 @@ def set_top_view(self):
192
192
193
193
def _init_axis (self ):
194
194
'''Init 3D axes; overrides creation of regular X/Y axes'''
195
- self .w_xaxis = axis3d .XAxis ('x' , self .xy_viewLim .intervalx ,
195
+ self .xaxis = axis3d .XAxis ('x' , self .xy_viewLim .intervalx ,
196
196
self .xy_dataLim .intervalx , self )
197
- self .xaxis = self .w_xaxis
198
- self .w_yaxis = axis3d .YAxis ('y' , self .xy_viewLim .intervaly ,
197
+ self .yaxis = axis3d .YAxis ('y' , self .xy_viewLim .intervaly ,
199
198
self .xy_dataLim .intervaly , self )
200
- self .yaxis = self .w_yaxis
201
- self .w_zaxis = axis3d .ZAxis ('z' , self .zz_viewLim .intervalx ,
199
+ self .zaxis = axis3d .ZAxis ('z' , self .zz_viewLim .intervalx ,
202
200
self .zz_dataLim .intervalx , self )
203
- self .zaxis = self .w_zaxis
201
+ # Provide old aliases
202
+ self .w_xaxis = self .xaxis
203
+ self .w_yaxis = self .yaxis
204
+ self .w_zaxis = self .zaxis
204
205
205
206
for ax in self .xaxis , self .yaxis , self .zaxis :
206
207
ax .init3d ()
207
208
209
+ def get_zaxis (self ):
210
+ '''Return the :class:`ZAxis<~.axis3d.Axis>` instance.'''
211
+ return self .zaxis
212
+
208
213
def get_children (self ):
209
214
return [self .zaxis ] + super ().get_children ()
210
215
@@ -2435,18 +2440,18 @@ def bar3d(self, x, y, z, dx, dy, dz, color=None,
2435
2440
2436
2441
zsort : str, optional
2437
2442
The z-axis sorting scheme passed onto
2438
- :func :`~mpl_toolkits.mplot3d .art3d.Poly3DCollection`
2443
+ :class :`~.art3d.Poly3DCollection`
2439
2444
2440
2445
shade : bool, optional (default = True)
2441
2446
When true, this shades the dark sides of the bars (relative
2442
2447
to the plot's source of light).
2443
2448
2444
- Any additional keyword arguments are passed onto
2445
- :func :`~mpl_toolkits.mplot3d. art3d.Poly3DCollection`
2449
+ **kwargs : Any additional keyword arguments are passed onto
2450
+ :class :`~. art3d.Poly3DCollection`.
2446
2451
2447
2452
Returns
2448
2453
-------
2449
- collection : Poly3DCollection
2454
+ collection : `~.art3d. Poly3DCollection`
2450
2455
A collection of three dimensional polygons representing
2451
2456
the bars.
2452
2457
"""
0 commit comments