Skip to content

Missing spaces in LaTeX expressions when plotting using latex2exp #45

@colinbousige

Description

@colinbousige

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.

image

To reproduce in a vanilla R terminal:

library(httpgd)
library(latex2exp)
hgd()
plot(TeX(r'($\alpha$ and also $\beta$)'))

yields this:
image

instead of this :

library(latex2exp)
plot(TeX(r'($\alpha$ and also $\beta$)'))

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions