[MacPorts] #39630: py27-matplotlib: Broken logarithmic bar plot

MacPorts noreply at macports.org
Thu Jul 4 00:54:24 PDT 2013


#39630: py27-matplotlib: Broken logarithmic bar plot
------------------------+--------------------------------
 Reporter:  bruclaud@…  |      Owner:  macports-tickets@…
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.1.3
 Keywords:              |       Port:
------------------------+--------------------------------
 As also described [http://stackoverflow.com/questions/17452955/macports-
 update-log-option-in-matplotlib-pyplot-bar-broke here], the newest
 py27-matplotlib update seems to have broken the log-option in
 matplotlib.pyplot's bar function. Setting it =False works perfectly, =True
 however gives the following error:

 {{{
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/matplotlib/pyplot.py", line 2383, in bar
     ret = ax.bar(left, height, width=width, bottom=bottom, **kwargs)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/matplotlib/axes.py", line 4901, in bar
     self.add_patch(r)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/matplotlib/axes.py", line 1570, in add_patch
     self._update_patch_limits(p)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/matplotlib/axes.py", line 1588, in _update_patch_limits
     xys = patch.get_patch_transform().transform(vertices)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/matplotlib/patches.py", line 581, in get_patch_transform
     self._update_patch_transform()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/matplotlib/patches.py", line 577, in
 _update_patch_transform
     bbox = transforms.Bbox.from_bounds(x, y, width, height)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/matplotlib/transforms.py", line 786, in from_bounds
     return Bbox.from_extents(x0, y0, x0 + width, y0 + height)
 TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/39630>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list