gr: fix problem with ugly exponents (#2810)

This commit is contained in:
Josef Heinen 2020-06-24 16:38:57 +02:00
parent 07146e84e5
commit 8e3f76cb6f

View File

@ -752,7 +752,10 @@ function gr_convert_sci_tick_label(label)
base, exponent = caret_split
label = "$base^{$exponent}"
end
convert_sci_unicode(label)
if occursin("×10", label)
label = string(replace(label, "×10" => "×10^{"), "}")
end
label
end
function gr_axis_height(sp, axis)