On Wed, Jun 2, 2010 at 10:42 AM, Denis Laxalde <[email protected]> wrote:
> This is set in axis3d module (class Axis), by _AXINFO.
> So far, I haven't found a way to modify colors/transparency but to edit
> the latter file. Is this hard-coded or is there a way to modify this a
> posteriori ?
>
> Cheers,
>
> Denis
>
You can simply modify that dictionary.
To have different colors for different axes, define _AXINFO in the
instance level as below.
from mpl_toolkits.mplot3d import axes3d, axis3d
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax = axes3d.Axes3D(fig)
myAXINFO = {
'x': {'i': 0, 'tickdir': 1, 'juggled': (1, 0, 2),
'color': (0.55, 0.95, 0.95, 0.5, 0.2)},
'y': {'i': 1, 'tickdir': 0, 'juggled': (0, 1, 2),
'color': (0.50, 0.90, 0.90, 0.5, 0.8)},
'z': {'i': 2, 'tickdir': 0, 'juggled': (0, 2, 1),
'color': (0.525, 0.925, 0.925, 0.5, 0.5)},
}
ax.w_xaxis._AXINFO = myAXINFO
ax.w_yaxis._AXINFO = myAXINFO
ax.w_zaxis._AXINFO = myAXINFO
# to change the global behavior
# axis3d.Axis._AXINFO.update(myAXINFO)
plt.show()
------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users