2011/2/25 Philipp A. <flying-sheep@web.de>
2011/2/25 Benjamin Root <ben.root@ou.edu>
On Fri, Feb 25, 2011 at 8:09 AM, Philipp A. <flying-sheep@web.de> wrote:
Axes3D from mpl_toolkits.mplot3d does not override set_*ticklabels.
this bug is about the issue.
to get a crude replacement, i have to do the following:

for x, s in enumerate(ticks):
ax.text3D(x, -.1, -.5, s)
for a in ax.w_xaxis.get_ticklabels():

 is there a way to do better and hack my values into the real tick labels (i bet they are drawn internally the same as text3D, but there is no way to access the values)?

In matplotlib in the development branch, I am able to call ax.w_xaxis.set_ticklabels() (or ax.w_yaxis, or ax.w_zaxis) and have the ticks show up appropriately.  I have not tested earlier versions of matplotlib, though.  Which version are you using?

Admittedly, the control of the ticks is very poor in mplot3d.  I hope to improve that over the next several months.

Ben Root

i use 0.99.3 both in university and at home, but somehow at home, matplotlib complains about ValueError: Unknown projection '3d' at home.

i’ll try 1.0.1 and report if it works.

update: i’ll see if a dev build does the trick tomorrow, as a local build of 1.0.1 doesn’t show the x/yticklabels and there doesn’t exist a function named set_zticklabels.