Merge pull request #2684 from daschw/gr-ticklabel
fix numeric gr ticklabels
This commit is contained in:
commit
4e2ee35125
@ -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,'^')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user