diff --git a/src/backends/gr.jl b/src/backends/gr.jl index b4622145..27a0e2e3 100644 --- a/src/backends/gr.jl +++ b/src/backends/gr.jl @@ -172,6 +172,8 @@ function gr_polyline(x, y, func = GR.polyline; arrowside=:none) end end +gr_inqtext(x, y, s::Symbol) = gr_inqtext(x, y, string(s)) + function gr_inqtext(x, y, s) if length(s) >= 2 && s[1] == '$' && s[end] == '$' GR.inqtextext(x, y, s[2:end-1]) @@ -182,6 +184,8 @@ function gr_inqtext(x, y, s) end end +gr_text(x, y, s::Symbol) = gr_text(x, y, string(s)) + function gr_text(x, y, s) if length(s) >= 2 && s[1] == '$' && s[end] == '$' GR.mathtex(x, y, s[2:end-1])