-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
configure hash density and size #7750
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
Comments
att @Carreau As this is mostly with the inline backend someone from jupyter should be looped in. |
Hatches being dpi independent is a feature of 2.0. |
@tacaswell Thank you let it be dpi independent.:) But the sizes really differ, I add print-screens in the same scale to my question, and OS is Windows. :) |
Thanks, I"ll have a look |
ok, I can reproduce the issue locally. One possible solution is to use patt = [p*2 for p in ['-', '+', 'x', 'o', 'O', '.', '*', '\\', '/'] ] to increase the density of the hatch. The default density looks like it has gone down (but should now be consistent across backends and dpi, see #7421 and http://matplotlib.org/2.0.0rc2/users/dflt_style_changes.html#hatching). A feature that we probably need to add is an rcParam to change the default density. |
attn @QuLogic where is the hatch density set? |
Pushing this to 2.2 because it requires adding configuration knobs to tune the hash size and density. |
Thanks @tacaswell, it's a good decision. I know it's tough to push things to later, but happy to see MPL 2.0 to be that close ! |
@tacaswell The density is applied in There are a lot of functions/methods that set a default value, but ultimately, the density is probably set from |
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help! |
Related to #20690 |
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help! |
I've a laptop with HiDPI display, so I use
c.InlineBackend.figure_format = 'retina'
in IPython to prevent blurring in browser . I found some differences betweenmpl 1.5.3
and2.0.0
. I've tried to summarize them:figure_format = 'retina'
.In
mpl 1.5.3
'retina'
also affects thehatch
es appearance (and they look nicer):Here you can't see the blur, but it actually is, without setting up
'retina'
or'png2x'
.In
mpl 2.0.0
'retina'
only affects blur effect:Also you can see that actual sizes differ between versions, I use
'Save image as'
to get pictures. It's nice that visual size in2.0.0
in Jupyter notebook holds the same, buthatch
es looks ugly:) Is it desirable behavior in2.0.0
?I use:
Python 3.6
IPython 5.1.0
jupyter-notebook 4.3.1
Firefox 50.1.0
Windows 10
EDIT:

mpl 2.0.0
:mpl 1.5.3
:The text was updated successfully, but these errors were encountered: