-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Black and white plotting option #7
Comments
From v1.0 scoping doc:
|
matplotlib hatches... https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/hatch.py Should be able to subclass to have
Eg see this example (not sure how great the code is...) http://stackoverflow.com/questions/17285154/how-to-fill-a-polygon-with-a-custom-hatch-in-matplotlib |
Would it be possible to include the USGS geology hatches? Here the link to USGS patterns: |
Great suggestion. I think we can replicate a few of these with matplotlib's usual implementation for hatch fills, which uses paths to draw the elements of the hatch. I was going to work on this now, so I'll have some results shortly. Mpl's paths are quite similar to the SVG and PS specifications, so it might be possible to use the instructions from the EPS files from USGS to replicate them that way, with a little manipulation in between. This would be preferable to doing it with bitmaps (and as you suggest, that may not even be possible). |
Commit 932114c contains some custom hatches: Had to use rather unintuitive symbols for these because of the ones mpl already uses. |
It would be cool to have fills as well as or instead of colours.
Bonus: see #8
The text was updated successfully, but these errors were encountered: