You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have noticed that when I increase the figure size to some very large sizes (for use on a very large and non-primary monitor) that not all the LaTeX symbols are being scaled correctly.
e.g.
When I use a very small figure size (which fits within the default monitor size) everything seems to be fine:
However, when I increase the figure sizes not all the symbols scale.
the good
the bad
and the ugly
Some of the problem symbols include int, frac, sqrt (display style), and scaling parentheses.
In one of the worst maintainer responses possible, I don't think this is a bug in Matplotilb.
You are using latex to do the font rendering which means Matplotlib is not involved in the text rendering at all, we just use what latex produces. You can find the temporary files we use for this in ~/.cache/matplotlib/tex.cache (we cache things for speed, the hash is based on the contents, check tex_manager for details). Digging out the tex file used the miss behaving text you find
which if you render with pdflatex you get the same issues.
If I comment out your preamble it renders correctly (and you have different preambles in the different cases).
I am going to close this as I don't think there is anything we can do on the Matplotlib side, but please ping to re-open if we are calling latex badly or should tweak our template.
I have noticed that when I increase the figure size to some very large sizes (for use on a very large and non-primary monitor) that not all the LaTeX symbols are being scaled correctly.
e.g.
When I use a very small figure size (which fits within the default monitor size) everything seems to be fine:
However, when I increase the figure sizes not all the symbols scale.
the good

the bad

and the ugly

Some of the problem symbols include
int
,frac
,sqrt
(display style), and scaling parentheses.Why mention default Ubuntu display?
I know Matplotlib has some issues with canvases which are bigger than the default window size, e.g. Initial plot window ignoring rcParams figure.figsize #10555, and Add scrollbars when needed to preserve specified figure size #7338)
The code:
Using a virtual environment python 2.7.12 and matplotlib 2.2.3 and TkAgg backend on Ubuntu 16.04. (Not exactly MWE but close enough I hope).
The text was updated successfully, but these errors were encountered: