Matplotlib turn off antialias for text in plot?
-
19-09-2019 - |
Question
Is there any way to turn off antialias for all text in a plot, especially the ticklabels?
Solution
It seems this is not possible. Some classes such as Line2D have a "set_antialiased" method, but Text lacks this. I suggest you file a feature request on the Sourceforge tracker, and send an email to the matplotlib mailing list mentioning the request.
OTHER TIPS
Did you try playing with the font/text properties of matplotlibrc ? That would be the first thing to try, I think (see here for examples: http://matplotlib.sourceforge.net/users/customizing.html)
I believe the anti-aliasing of Text objects is up to the font engine being used. It seems the freetype2 fonts support this.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow