sciapp / gr

GR framework: a graphics library for visualisation applications
Other
328 stars 54 forks source link

Tilde in Plots using GR as backend #126

Closed airglide closed 4 years ago

airglide commented 4 years ago

Hello

I tried to use the GR backend with Plots to label the axis, the tilde is misplaced, it should be above the x

Code to reproduce problem:

using Plots

gr()
Plots.GRBackend()
plot([0,1],[2,2])
ylabel!("\$\\tilde{x}\$")

the output looks like: plt

I looked at the temp file generated by the latex and this looks fine, not sure if the problem comes maybe from Plots.jl, I tried to recreate the problem with Plotly and had no issue there so I figured I post it here.

FlorianRhiem commented 4 years ago

Hello, thank you for reporting this.

The bearing of the combining tilde and similar characters was being applied in the wrong direction, moving it away from the x instead of back above it. I've fixed it in develop and the fix will be part of the next release.