httpgd
httpgd copied to clipboard
Missing spaces in LaTeX expressions when plotting using `latex2exp`
Hello,
See original post here where the author of latex2exp
tracked the issue to arise from the httpgd
plot renderer.
When plotting using httpgd
and latex2exp
, LaTeX expressions are missing spaces and are distorted. Doing the same plot in the normal R png renderer yields the expected result.
To reproduce in a vanilla R terminal:
library(httpgd)
library(latex2exp)
hgd()
plot(TeX(r'($\alpha$ and also $\beta$)'))
yields this:
instead of this :
library(latex2exp)
plot(TeX(r'($\alpha$ and also $\beta$)'))