Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Plain Text even with two $ $ and GR Backend #3111

Closed
enuit opened this issue Oct 29, 2020 · 0 comments
Closed

[BUG] Plain Text even with two $ $ and GR Backend #3111

enuit opened this issue Oct 29, 2020 · 0 comments

Comments

@enuit
Copy link

enuit commented Oct 29, 2020

I need Plots.jl to not interpret my strings as Latex, even if they have something like 10^{ or two $ signs. But due to

function gr_text(x, y, s::AbstractString)

all Strings send to GR with the above properties are rendered (or not rendered if the command is not found) as if they where TeX commands. At the moment, I am monkeypatching this with

	import GR
	function Plots.gr_text(x, y, s::AbstractString)
		GR.text(x, y, s)
	end

(This doesn't solve all problems, it still produces a "undefined symbol" warning and the position of the text gets wrong, but I think that is a GR problem)

Maybe there could be an option for the GR backend to not provide Magic math? I think of something in the lines of

import Plots
using Plots
gr(magic_math=false)
@t-bltg t-bltg closed this as completed Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants