From: Joe K. <jki...@wi...> - 2011-09-07 19:44:10
|
Interestingly, things work perfectly with the latest build from guithub. Presumably the bug was fixed already? On Wed, Sep 7, 2011 at 2:40 PM, Matthew Koichi Grimes <mk...@cs...>wrote: > I tried Joe's code, with the call to ax.set_axis_off() moved to right after > add_subplot(), as Ben suggested. The axes are still not disappearing, nor do > they disappear when I interact with it (by rotating the plot). > > -- Matt > > > On Wed, Sep 7, 2011 at 3:21 PM, Benjamin Root <ben...@ou...> wrote: > >> On Wed, Sep 7, 2011 at 2:14 PM, Joe Kington <jki...@wi...> wrote: >> >>> This no longer seems to work with matplotlib 1.0.1. >>> >>> As a quick example: >>> >>> import numpy as np >>> import matplotlib.pyplot as plt >>> from mpl_toolkits.mplot3d import Axes3D >>> >>> fig = plt.figure() >>> ax = fig.add_subplot(111, projection='3d') >>> >>> x,y,z,c = np.random.random((4,10)) >>> ax.scatter(x, y, z, c=c) >>> ax.set_axis_off() >>> >>> plt.show() >>> >>> The attached .png shows the result on my system... Is this a bug, or am I >>> doing something strange? >>> >>> Thanks! >>> -Joe >>> >>> >> Hmmm, try putting that call right after the add_subplot() call. I don't >> have time to test it out right now, but I wonder if the axes are being drawn >> once prior to the call to set_axis_off(). I would also be interested to >> know if the axes disappear when you interact with it. >> >> Ben Root >> >> > |