Better legend anchor algorithm
This commit is contained in:
parent
6724a3a2fe
commit
1d3e0a5d5d
@ -20,5 +20,7 @@ end
|
|||||||
Split continuous range `[-1,1]` into an integer `[1,2,3]`
|
Split continuous range `[-1,1]` into an integer `[1,2,3]`
|
||||||
"""
|
"""
|
||||||
function legend_anchor_index(x)
|
function legend_anchor_index(x)
|
||||||
return ceil(Integer,2//3*(x+1))
|
x<-1//3 && return 1
|
||||||
|
x<1//3 && return 2
|
||||||
|
return 3
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user