Add style for xkcd#6157
Add style for xkcd#6157souravsingh wants to merge 1 commit intomatplotlib:masterfrom souravsingh:issue-5992
Conversation
Added a style file for xkcd Fixes #5992
|
|
||
| ##PATH | ||
|
|
||
| path.sketch : (scale, length, randomness) |
There was a problem hiding this comment.
Shouldn't these be numbers, rather than the placeholders "scale, length, randomness"?
|
This is missing the patheffect that puts a white border behind all lines. |
|
Ping @souravsingh : are you still interested working on this style sheet? With @mdboom's remarks, I guess one should get something that starts to resemble xkcd plots :). |
|
@afvincent I am interested in working on the style sheet. I am confused about the parameter for patheffect |
|
The patheffect part is probably going to be the hardest part at the moment, On Mon, Jul 18, 2016 at 9:22 AM, Sourav Singh notifications@github.com
|
|
@WeatherGod You're right: the patheffect part might be a bit more difficult to setup than I expected :/. I was fooled by the example of |
|
@souravsingh Apparently, there is an official xkcd font, so it could be nice to add it as the default choice (another PR is open to add it to |
|
@afvincent Is the problem fixed? |
|
Wohh I totally forgot this one : apologies @souravsingh! The xkcd font seems to have been added to the list so this part should be OK. Unfortunately, I cannot see an easy solution to the |
|
@afvincent Well, we control that string, and |
|
If we parsed patheffect = getattr(patheffects.modules[__name__], str)
rc['path.effect'] = patheffect(**kwargs)would that be safe enough? ping @anntzer |
|
Please no more parsing craziness. |
|
Is there a resolution for the PR? |
|
I hope the resolution will be #9528. |
|
I'll close in favour of #14943 |
Added a style file for xkcd
Fixes #5992