Guest User

Untitled

a guest
Apr 10th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.22 KB | None | 0 0
  1. ===================================================================== ERRORS =====================================================================
  2. ___________________________________________________ ERROR at setup of test_bar3d[0-bar3d-png] ____________________________________________________
  3.  
  4. self = <matplotlib.testing.decorators.ImageComparisonDecorator object at 0x7f87fe538ba8>
  5.  
  6.     def setup(self):
  7.         func = self.func
  8.         plt.close('all')
  9.         self.setup_class()
  10.         try:
  11.             matplotlib.style.use(self.style)
  12.             matplotlib.testing.set_font_settings_for_testing()
  13. >           func()
  14.  
  15. ../matplotlib/testing/decorators.py:259:
  16. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  17. tests/test_mplot3d.py:15: in test_bar3d
  18.     ax = fig.add_subplot(111, projection='3d')
  19. ../matplotlib/figure.py:1015: in add_subplot
  20.     a = subplot_class_factory(projection_class)(self, *args, **kwargs)
  21. ../matplotlib/axes/_subplots.py:73: in __init__
  22.     self._axes_class.__init__(self, fig, self.figbox, **kwargs)
  23. mplot3d/axes3d.py:98: in __init__
  24.     *args, **kwargs)
  25. ../matplotlib/axes/_base.py:540: in __init__
  26.     self.cla()
  27. mplot3d/axes3d.py:1077: in cla
  28.     self.set_zlim(0, 1)
  29. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  30. self = <matplotlib.axes._subplots.Axes3DSubplot object at 0x7f87fb427828>, bottom = 0, top = 1, emit = True, auto = False, kw = {}
  31. old_bottom = 0.0, old_top = 1.0
  32.  
  33.     def set_zlim3d(self, bottom=None, top=None, emit=True, auto=False, **kw):
  34.         """
  35.            Set 3D z limits.
  36.    
  37.            See :meth:`matplotlib.axes.Axes.set_ylim` for full documentation
  38.    
  39.            """
  40.         if 'zmin' in kw:
  41.             bottom = kw.pop('zmin')
  42.         if 'zmax' in kw:
  43.             top = kw.pop('zmax')
  44.         if kw:
  45.             raise ValueError("unrecognized kwargs: %s" % list(kw))
  46.    
  47.         if top is None and cbook.iterable(bottom):
  48.             bottom, top = bottom
  49.    
  50.         self._process_unit_info(zdata=(bottom, top))
  51.         if bottom is not None:
  52.             bottom = self.convert_zunits(bottom)
  53.         if top is not None:
  54.             top = self.convert_zunits(top)
  55.    
  56.         old_bottom, old_top = self.get_zlim()
  57.         if bottom is None:
  58.             bottom = old_bottom
  59.         if top is None:
  60.             top = old_top
  61.    
  62.         if top == bottom:
  63.             warnings.warn(('Attempting to set identical bottom==top results\n'
  64.                      'in singular transformations; automatically expanding.\n'
  65.  
  66.                      'bottom=%s, top=%s') % (bottom, top))
  67.         bottom, top = mtransforms.nonsingular(bottom, top, increasing=False)
  68.         bottom, top = self.zaxis.limit_range_for_scale(bottom, top)
  69.         self.zz_viewLim.intervalx = (bottom, top)
  70.    
  71.         if auto is not None:
  72.             self._autoscaleZon = bool(auto)
  73.    
  74.         if emit:
  75. >           self.callbacks.process('zlim_changed', self)
  76. E           AttributeError: 'Axes3DSubplot' object has no attribute 'callbacks'
  77.  
  78. mplot3d/axes3d.py:737: AttributeError
Advertisement
Add Comment
Please, Sign In to add comment