Skip to content

Commit

Permalink
Use TeX directly in tex_annotation instead of rasterizing
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 authored Jun 24, 2024
1 parent f12a46f commit 301a7ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/recipe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,5 @@ function tex_annotation!(axis::Axis, lstring, x, y; mainfont = nothing, mathfont
classoptions = "preview, tightpage, 12pt"
)
tex = CachedTeX(texdoc)
marker = MakieTeX.rotl90(MakieTeX.recordsurf2img(tex, 4))
scatter!(axis, x, y; marker, markersize=tex.dims .* scale_factor)
scatter!(axis, x, y; tex, markersize=tex.dims .* scale_factor)
end

0 comments on commit 301a7ee

Please sign in to comment.