|
From: Jeffrey S. <jef...@gm...> - 2013-08-07 19:20:50
|
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 a solid line in my dash list which is what I desired but I think (1,0) is more intuitive and doesn't cause any errors. Since dash lists have to be even number of values, could not just put (1) to get a solid line. I guess do whichever you think is better. Cheers, Jeff On Tue, Aug 6, 2013 at 4:14 AM, Michael Droettboom <md...@st...> wrote: > 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 > throwing up its hands). In SVG, you get a solid line, which may or may not > be the right behavior. > > Given that a value of 0 doesn't make much sense anyway, I thought it best > to just disallow it. Jeffrey: Do you have a good need for this? > > Here's the original PR: > > https://github.com/matplotlib/matplotlib/pull/1999 > > Mike > > > On 08/05/2013 01:36 PM, Benjamin Root wrote: > > @mdboom, from git blame, this looks to be specifically introduced by you > via 7e7b5320<https://github.com/matplotlib/matplotlib/commit/7e7b532057c08541489203697987a924e56a7aeb>on May 15th, and you even added some tests for handling path clipping. > Perhaps the choice of "<=" should have been just "<"? > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out.http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Matplotlib-users mailing lis...@li...://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |