Hello,
Has anyone formatted 3D major tick labels in wxagg backend successfully or
can tell me what my problem might be:
majorFormatter = matplotlib.ticker.FormatStrFormatter('%g')
axes.w_xaxis.set_major_formatter(majorFormatter)
axes.w_yaxis.set_major_formatter(majorFormatter)
axes.w_zaxis.set_major_formatter(majorFormatter)
It works fine in matplotlib gui, but adding it as part of a wx backend
figure I get the following error:
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_wx.py",
line 1315, in _onMotion
FigureCanvasBase.motion_notify_event(self, x, y, guiEvent=evt)
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backend_bases.py",
line 1245, in motion_notify_event
self.callbacks.process(s, event)
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/cbook.py",
line 161, in process
func(*args, **kwargs)
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backend_bases.py",
line 1894, in mouse_move
try: s = event.inaxes.format_coord(event.xdata, event.ydata)
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mpl_toolkits/mplot3d/axes3d.py",
line 400, in format_coord
ys = self.format_ydata(y)
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mpl_toolkits/mplot3d/axes3d.py",
line 350, in format_ydata
return sensible_format_data(fmt, y)
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mpl_toolkits/mplot3d/axes3d.py",
line 26, in sensible_format_data
return self._formatSciNotation(s)
AttributeError: FormatStrFormatter instance has no attribute
'_formatSciNotation'
Example of problem: http://www.nabble.com/file/p24922118/test.py test.py
···
--
View this message in context: http://www.nabble.com/Format-3D-tick-labels-wxagg-backend-tp24922118p24922118.html
Sent from the matplotlib - users mailing list archive at Nabble.com.