Mplot3d - how to display minor ticks?

How to display (enable) minor ticks on a 3D chart using the mplot3d / axes3d chart?

I can determine the main tickmark locations using:

ax.w_zaxis.set_major_locator (MultipleLocator (10))

Similarly, I assume that I can determine minor ticks using:

ax.w_zaxis.set_minor_locator (MultipleLocator (2))

This seems to define secondary tickers, but doesn’t actually include them in my plot. How to enable thumbnails in my axes3D?

thanks for the help

Mark

+4
source share
1 answer

From what I can tell, minor marks are not fully implemented in mplot3d. The place I'm looking into the matplotlib code, Your_Python_Lib_site-packages\mpl_toolkits\mplot3d\axis3d.py in the draw() function. I see only the code to draw the main marks, not the minor ones. It seems that it would not be so difficult to change the code so that it also draws small marks. I wonder if people know matplotlib that small marks do not work in mplot3d.

+3
source

All Articles