Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d2afb93

Browse files
committed
Merge branch 'newfeats/mplot3d-ticklabels' of https://github.com/WeatherGod/matplotlib into WeatherGod-newfeats/mplot3d-ticklabels
2 parents 70683d4 + 38037d1 commit d2afb93

1 file changed

Lines changed: 39 additions & 5 deletions

File tree

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,15 +290,49 @@ def get_zlim3d(self):
290290
return self.zz_viewLim.intervalx
291291
get_zlim = get_zlim3d
292292

293-
def set_zticks(self,*args,**kwargs):
293+
def set_zticks(self, *args, **kwargs):
294294
"""
295-
Set 3d z tick locations and (optionally labels).
296-
See set_xticks3d for more details.
295+
Set z-axis tick locations.
296+
See set_xticks for more details.
297+
298+
Note that minor ticks are not supported at this time.
297299
"""
298300
return self.w_zaxis.set_ticks(*args, **kwargs)
299301

300-
def get_zticks(self):
301-
return self.w_zaxis.get_ticks()
302+
def get_zticks(self, *args, **kwargs):
303+
"""
304+
Get the z-axis tick objects.
305+
See get_xticks for more details.
306+
307+
Note that minor ticks are not supported at this time.
308+
"""
309+
return self.w_zaxis.get_ticks(*args, **kwargs)
310+
311+
def set_zticklabels(self, *args, **kwargs) :
312+
"""
313+
Set z-axis tick labels.
314+
See set_xticklabels for more details.
315+
316+
Note that minor ticks are not supported at this time.
317+
"""
318+
return self.w_zaxis.set_ticklabels(*args, **kwargs)
319+
320+
def get_zticklabels(self, *args, **kwargs) :
321+
"""
322+
Get ztick labels as a list of Text instances.
323+
Set get_xticklabels for more details.
324+
325+
Note that minor ticks are not supported at this time.
326+
"""
327+
return self.w_zaxis.get_ticklabels(*args, **kwargs)
328+
329+
def get_zticklines(self) :
330+
"""
331+
Get ztick lines as a list of Line2D instances.
332+
Note that this function is provided merely for completeness.
333+
These lines are re-calculated as the display changes.
334+
"""
335+
return self.w_zaxis.get_ticklines()
302336

303337
def clabel(self, *args, **kwargs):
304338
return None

0 commit comments

Comments
 (0)