Firstly, you can change your xaxis format, currently it throws many exceptions to the interpreter when the mouse goes to the edges of the diagram:
You can change this:
xfmt = ticker.FuncFormatter(lambda x, pos: label_map[int(x)])
Something like that:
def xformatter(x,pos): try: val = label_map[int(x)] except: val = "None" return val ... xfmt = ticker.FuncFormatter(xformatter)
Then I found that in the actual mpl_toolkits.mplot3d
there is a mistake
If you look at line 320 in \Lib\site-packages\mpl_toolkits\mplot3d\axis3d.py
You will find this typo:
class YAxis(Axis): def get_data_interval(self): 'return the Interval instance for this axis data limits' return self.axes.xy_dataLim.intervaly class ZAxis(Axis): def get_data_interval(self): 'return the Interval instance for this axis data limits' return self.axes.zz_dataLim.intervalx
Please note that self.axes.zz_dataLim.intervalx should be: self.axes.zz_dataLim.intervalz
You may need to report these issues to the developer.
source share