Issue with mplot3d - matplotlib-users - Matplotlib
Issue with mplot3d Community matplotlib-users Guillaume_Gay December 18, 2013, 11:16am 1 Hi all, The following code fails on my box (python3.3, linux Mint 15, latest matplotlib code from github): import matplotlib as mpl from mpl_toolkits.mplot3d import Axes3D import numpy as np import matplotlib.pyplot as plt mpl.rcParams['legend.fontsize'] = 10 fig = plt.figure() ax = fig.gca(projection='3d') theta = np.linspace(-4 * np.pi, 4 * np.pi, 100) z = np.linspace(-2, 2, 100) r = z**2 + 1 x = r * np.sin(theta) y = r * np.cos(theta) ax.plot(x, y, z, label='parametric curve') ax.legend() plt.show() ```python Here is the tail of the traceback: ```python /home/guillaume/python3/lib/python3.3/site-packages/matplotlib-1.4.x-py3.3-linux-x86_64.egg/matplotlib/axes/_base.py incla(self) 895 self.containers= [] 896 --> 897 self.grid(self._gridOn, which=rcParams['axes.grid.which']) 898 props = font_manager.FontProperties(size=rcParams['axes.titlesize'], 899 weight=rcParams['axes.titleweight']) /home/guillaume/python3/lib/python3.3/site-packages/mpl_toolkits/mplot3d/axes3d.py ingrid(self, b, **kwargs) 1254 if len(kwargs) : 1255 b= True -> 1256 self._draw_grid= maxes._string_to_bool(b) 1257 1258 def ticklabel_format(self, **kwargs) : AttributeError: 'module' object has no attribute '_string_to_bool' Is there a work around?
Shall I rise an issue on github? Cheers, Guillaume Guillaume_Gay December 18, 2013, 11:34am 2 It appears I haden't properly updated the package, sorry for the noise. G. ··· Le 18/12/2013 12:16, Guillaume Gay a écrit : Hi all, The following code fails on my box (python3.3, linux Mint 15, latest matplotlib code from github): import matplotlib as mpl from mpl_toolkits.mplot3d import Axes3D import numpy as np import matplotlib.pyplot as plt mpl.rcParams['legend.fontsize'] = 10 fig = plt.figure() ax = fig.gca(projection='3d') theta = np.linspace(-4 * np.pi, 4 * np.pi, 100) z = np.linspace(-2, 2, 100) r = z**2 + 1 x = r * np.sin(theta) y = r * np.cos(theta) ax.plot(x, y, z, label='parametric curve') ax.legend() plt.show() ```python Here is the tail of the traceback: ```python /home/guillaume/python3/lib/python3.3/site-packages/matplotlib-1.4.x-py3.3-linux-x86_64.egg/matplotlib/axes/_base.py incla(self) 895 self.containers= [] 896 --> 897 self.grid(self._gridOn, which=rcParams['axes.grid.which']) 898 props = font_manager.FontProperties(size=rcParams['axes.titlesize'], 899 weight=rcParams['axes.titleweight']) /home/guillaume/python3/lib/python3.3/site-packages/mpl_toolkits/mplot3d/axes3d.py ingrid(self, b, **kwargs) 1254 if len(kwargs) : 1255 b= True -> 1256 self._draw_grid= maxes._string_to_bool(b) 1257 1258 def ticklabel_format(self, **kwargs) : AttributeError: 'module' object has no attribute '_string_to_bool' Is there a work around?
Shall I rise an issue on github? Cheers, Guillaume