Re: [Matplotlib-users] Bug in Custom Dash List

2013-08-07 Thread Jeffrey Spencer
I think the function should be np.all(dash_list <= 0.0) instead of np.any? This works 100% fine on my machine so I think it just hangs if all values are less than or equal to zero. That hangs on my machine as you stated. >From digging into that I also realized I could have put (None, None) to get

Re: [Matplotlib-users] Bug in Custom Dash List

2013-08-05 Thread Michael Droettboom
The problem is that a 0-length dash or space is undefined. In Agg, it causes an infinite loop (presumably because the line cursor never moves). Saving it to a PDF file and opening it in Acrobat Reader reveals a blank page (presumably because it's doing something smarter, but also basically th

Re: [Matplotlib-users] Bug in Custom Dash List

2013-08-05 Thread Benjamin Root
@mdboom, from git blame, this looks to be specifically introduced by you via 7e7b5320on May 15th, and you even added some tests for handling path clipping. Perhaps the choice of "<=" should have been just "<"

[Matplotlib-users] Bug in Custom Dash List

2013-07-30 Thread Jeffrey Spencer
I have old scripts I had made that I was rerunning in newer versions of matplotlib. They now fail because the function requires dashes to be greater than 0. I have them set to zero as below and it still throws the error. I had to set the zero in the middle to 1e-12 to get around this but is this th