Adding lines around 3d bounding box?

Hi!

In matplotlib’s 3d plotting, the three corners of the 3d cube closest to the camera are used as the axis and receive tick marks, labels, and a dark black line. Is it possible to have the black line and ticks show simultaneously on the 3 far corners at the top of the cube?

For example, I’d like to have the top-left corner, top-right corner and right side of this image be dark and include ticks, but not tick labels.

http://dl.dropbox.com/u/1299034/fig_example.png

Thanks!

Unfortunately, that level of customization is not in the design of mplot3d. It it possible that it may happen in future releases as I work to bring mplot3d into feature-parity with regular axes, it won’t happen soon.

Now, that doesn’t mean that it is impossible to do right now, but it would require hacking the axis3d.py file. For each axis, a panel is drawn (which is what you see now). It is possible to simply have it plot a second (transparent) panel on the far side with a black outline. Next, there is a loop that makes the ticks and the labels at the same time. Just duplicate that loop, but for the far edge and exclude the labels.

Sorry I can’t be of more help right now, but I hope this info gets you where you need to be.

Cheers,
Ben Root

···

On Friday, February 3, 2012, Jacob Biesinger <jake.biesinger@…287…> wrote:

Hi!
In matplotlib’s 3d plotting, the three corners of the 3d cube closest to the camera are used as the axis and receive tick marks, labels, and a dark black line. Is it possible to have the black line and ticks show simultaneously on the 3 far corners at the top of the cube?

For example, I’d like to have the top-left corner, top-right corner and right side of this image be dark and include ticks, but not tick labels.
http://dl.dropbox.com/u/1299034/fig_example.png

Thanks!