Opened 11 years ago

Closed 11 years ago

#39630 closed defect (worksforme)

py27-matplotlib: Broken logarithmic bar plot

Reported by: bruclaud@… Owned by: seanfarley (Sean Farley)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: petrrr
Port: py27-matplotlib

Description

As also described 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'

Change History (4)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to sean@…
Port: py27-matplotlib added

comment:2 Changed 11 years ago by bruclaud@…

It seems to be working again in the py27-matplotlib @1.3.0_0+tkinter version. Thanks!

comment:3 Changed 11 years ago by petrrr

Cc: Peter.Danecek@… added

Cc Me!

comment:4 Changed 11 years ago by seanfarley (Sean Farley)

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.