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
Unsharp text in the Inline-backend. #4102
Comments
It would be most helpful if you could include a minimal script and the resulting .png file illustrating this. |
And a screenshot of some text that you think looks better would be helpful as well. Note one thing that matplotlib does not do is subpixel antialiasing (called ClearType by Microsoft), since such images would not be portable to other displays. This does give the appearance of slightly less antialiasing than you might see elsewhere on your system. |
There more i play around with it the more i am sure that this is somehow ipython fault. Have look at Both images are made by excatly the same code, only the backend differs. The top one is made by using %matplotlib qt (other backends have the same result.). The bottom one is done with %matplotlib inline. I think i have directly set every setting ipython changes. Both figures have the same pixel size. |
Hmm, ok it seems that the inline backend changes the font-size by default. I am not really happy about all the inline-backend related changes to the rcParams in ipython. This properly explains my impression: a 10-pt TTF-font looks quite bad if upscaled. So is mostly a ipython issue, please go ahead and close the issuse. |
You should also have a look at the nbagg backend. |
Eventually we should probably figure out the CSS magic to have those images display at native resolution (i.e. "Retina mode"), too. |
nbagg only works locally, and i use for exploratory work. But one main advantage of notebook is easy sharing, which only works with inline figures. Tbh I think ipyton should offer an inline backend with no changes to rcParams and document the changes for default-inline backend better. |
nbagg should save down to png for sharing right? |
At least in the last version, one have to handle all the figures and close them Changes done by inline-defaulst:
Also it uses
|
I renamed the issue for better discoverability. |
Is there any place in the FAQ for it? E.g. "Why does my plot looks different than in the ipython-notebook?". |
Maybe this is a little bit subjective, but even after playing around with dpi, fonts and
figure size, i still think that the text in plots generated by mpl looks not as sharp as it could be.
Please note i don't think my installation is to fault, e.g. the text in the examples at
https://github.com/jbmouret/matplotlib_for_papers also looks not to good. In day
to day usage it is quite visible when working in the ipython notebook, even after adjusting
the savefig.dpi.
If i am the only one thinking this way, please close the issues, but i think there could be something
wrong, either in freetype itself or the binding to it.
The text was updated successfully, but these errors were encountered: