JuliaPlots / MakieTeX.jl

TeX integration in Makie
MIT License
86 stars 12 forks source link

get things working again #4

Closed ffreyer closed 3 years ago

ffreyer commented 3 years ago

Compiles and runs again, but doesn't look right in GLMakie Screenshot from 2021-03-05 14-38-57

ffreyer commented 3 years ago

Changes:

ffreyer commented 3 years ago

Output from

fig = Figure(resolution = (500, 500));
ax = Axis(fig[1, 1]);
hidexdecorations!(ax); hideydecorations!(ax);
tex = MakieTeX.LTeX(fig[2, 1], raw"\int \mathbf E \cdot d\mathbf a = \frac{Q_{encl}}{4\pi\epsilon_0}", textsize=20);
fig

in a VSCode pane vs GLMakie. Screenshot from 2021-03-06 18-42-05

ffreyer commented 3 years ago

Added rotation via the model matrix but I think that is ignored when generating bounding boxes so the layouting doesn't quite work right.

SimonDanisch commented 3 years ago

Awesome to have this working again :) Should we just merge & tag this?

ffreyer commented 3 years ago

Yes :)