Skip to content

Newfeats/mplot3d ticklabels #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
1 commit merged into from
Feb 26, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 39 additions & 5 deletions lib/mpl_toolkits/mplot3d/axes3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,15 +290,49 @@ def get_zlim3d(self):
return self.zz_viewLim.intervalx
get_zlim = get_zlim3d

def set_zticks(self,*args,**kwargs):
def set_zticks(self, *args, **kwargs):
"""
Set 3d z tick locations and (optionally labels).
See set_xticks3d for more details.
Set z-axis tick locations.
See set_xticks for more details.

Note that minor ticks are not supported at this time.
"""
return self.w_zaxis.set_ticks(*args, **kwargs)

def get_zticks(self):
return self.w_zaxis.get_ticks()
def get_zticks(self, *args, **kwargs):
"""
Get the z-axis tick objects.
See get_xticks for more details.

Note that minor ticks are not supported at this time.
"""
return self.w_zaxis.get_ticks(*args, **kwargs)

def set_zticklabels(self, *args, **kwargs) :
"""
Set z-axis tick labels.
See set_xticklabels for more details.

Note that minor ticks are not supported at this time.
"""
return self.w_zaxis.set_ticklabels(*args, **kwargs)

def get_zticklabels(self, *args, **kwargs) :
"""
Get ztick labels as a list of Text instances.
Set get_xticklabels for more details.

Note that minor ticks are not supported at this time.
"""
return self.w_zaxis.get_ticklabels(*args, **kwargs)

def get_zticklines(self) :
"""
Get ztick lines as a list of Line2D instances.
Note that this function is provided merely for completeness.
These lines are re-calculated as the display changes.
"""
return self.w_zaxis.get_ticklines()

def clabel(self, *args, **kwargs):
return None
Expand Down