Axes3D labels

Does anyone know if it possible to annotate the axes with strings?

I've tried a hundred combinations of set_xticklabels with and without
set_xticks but absolutely nothing seems to have any effect.

Perhaps this is a bug? Perhaps labelling 3d axes is not supported? There's
no documentation on this matter and I'm at my wits end - any help is
appreciated.

I'm not an axes3d expert and below is from my quick at the code, so
there may be better ways.

axes3d have w_[xyz]axis attributes, which are responsible for drawing
tick, ticklables, and you need to change these to change ticks, etc.
While, I think something like w_xaxis.set_ticks should work, currently
it fails, which I think is a bug. As a workaround, you have to
directly set the ticklocator. For example, "ax.xaxis.set_ticks([-20,
0, 20])" becomes

from matplotlib.ticker import FixedLocator
locator = FixedLocator([-20, 0, 20])
ax.w_xaxis.set_major_locator(locator)

-JJ

ยทยทยท

On Tue, Oct 6, 2009 at 7:07 AM, William Hall <will@...2806...> wrote:

Does anyone know if it possible to annotate the axes with strings?

I've tried a hundred combinations of set_xticklabels with and without
set_xticks but absolutely nothing seems to have any effect.

Perhaps this is a bug? Perhaps labelling 3d axes is not supported? There's
no documentation on this matter and I'm at my wits end - any help is
appreciated.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users