Merge pull request #2684 from daschw/gr-ticklabel

fix numeric gr ticklabels
This commit is contained in:
Daniel Schwabeneder 2020-05-08 10:15:04 +02:00 committed by GitHub
commit 4e2ee35125
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -741,9 +741,9 @@ function gr_get_ticks_size(ticks, rot)
return w, h return w, h
end end
gr_tick_label(axis,label) = (axis[:formatter] in (:scientific, :auto)) ? gr_tick_label(axis, label) =
gr_convert_sci_tick_label(label) : (axis[:formatter] in (:scientific, :auto)) ? gr_convert_sci_tick_label(string(label)) :
label string(label)
function gr_convert_sci_tick_label(label) function gr_convert_sci_tick_label(label)
caret_split = split(label,'^') caret_split = split(label,'^')