Dear list,
a call to `axes.cla()` automacically generates axes labels +
descriptions. If I then draw something with 3D axes, then I have two
axes in one figure. How can I clear the eaxes without generating 2D
tickz / labels etc?
A simple example for this based on
http://matplotlib.sourceforge.net/examples/mplot3d/wire3d_demo.html
is (note the line marked with # <-------):
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
ax.cla() # <------------------------------------------------------
X, Y, Z = axes3d.get_test_data(0.05)
ax.plot_wireframe(X, Y, Z, rstride=10, cstride=10)
plt.ion()
plt.show()
-Holger
This problem appears to be fixed in the upcoming v1.1.0, which is expected due to the major revamp work I did. Which version are you using, just to be sure?
Ben Root
···
On Sat, Oct 1, 2011 at 10:51 AM, Holger Brandsmeier <holger.brandsmeier@…3803…> wrote:
Dear list,
a call to axes.cla()
automacically generates axes labels +
descriptions. If I then draw something with 3D axes, then I have two
axes in one figure. How can I clear the eaxes without generating 2D
tickz / labels etc?
A simple example for this based on
http://matplotlib.sourceforge.net/examples/mplot3d/wire3d_demo.html
is (note the line marked with # <-------):
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax = fig.add_subplot(111, projection=‘3d’)
ax.cla() # <------------------------------------------------------
X, Y, Z = axes3d.get_test_data(0.05)
ax.plot_wireframe(X, Y, Z, rstride=10, cstride=10)
plt.ion()
plt.show()
-Holger