cll35 / mplh5canvas

Automatically exported from code.google.com/p/mplh5canvas
0 stars 0 forks source link

points_to_pixels fails for string inputs #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
RendererH5Canvas.points_to_pixels got passed a string instead of a number by a 
recent version of matplotlib. casting it explicitly seemed to fix the issue.

Original issue reported on code.google.com by dmac...@gmail.com on 7 Nov 2011 at 10:10

GoogleCodeExporter commented 9 years ago
I could only reproduce this bug using mplh5canvas r32 and matplotlib 1.1.0 by 
running the sankey demos in mpl_examples/api (sankey_demo_basics.py, 
sankey_demo_links.py or sankey_demo_rankine.py). It is due to a PathPatch 
object with a line width set to '0.5' instead of 0.5 in matplotlib/sankey.py 
(line widths are supposed to be float).

This is identical to matplotlib issue #662 which has been fixed in the 
matplotlib trunk 6 months ago. Since none of the other backends cast their 
point parameters to float inside points_to_pixels() either (as the function 
needs to support arrays of float too), I am considering this bug closed.

Original comment by ludwig.s...@gmail.com on 29 Jun 2012 at 1:20