clean changes in recipes.jl
This commit is contained in:
parent
7bb2132b18
commit
5a4651a0ec
@ -472,23 +472,13 @@ end
|
|||||||
fillto = map(x -> _is_positive(x) ? typeof(baseline)(x) : baseline, fillto)
|
fillto = map(x -> _is_positive(x) ? typeof(baseline)(x) : baseline, fillto)
|
||||||
end
|
end
|
||||||
|
|
||||||
annotations = pop_kw!(plotattributes, :series_annotations, nothing)
|
if !isnothing(plotattributes[:series_annotations])
|
||||||
isvert = isvertical(plotattributes)
|
if isvertical(plotattributes)
|
||||||
if !isnothing(annotations)
|
annotations := (x,y,plotattributes[:series_annotations].strs,:bottom)
|
||||||
@series begin
|
else
|
||||||
primary := false
|
annotations := (y,x,plotattributes[:series_annotations].strs,:left)
|
||||||
seriestype := :scatter
|
|
||||||
markersize := 0
|
|
||||||
series_annotations := annotations
|
|
||||||
orientation := default(:orientation)
|
|
||||||
isvert ? (x, y) : (y, x)
|
|
||||||
end
|
end
|
||||||
# if isvertical(plotattributes)
|
series_annotations := nothing
|
||||||
# annotations := (x,y,plotattributes[:series_annotations].strs,:bottom)
|
|
||||||
# else
|
|
||||||
# annotations := (y,x,plotattributes[:series_annotations].strs,:left)
|
|
||||||
# end
|
|
||||||
# series_annotations := nothing
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# create the bar shapes by adding x/y segments
|
# create the bar shapes by adding x/y segments
|
||||||
@ -515,7 +505,7 @@ end
|
|||||||
expand_extrema!(axis, widen(ignorenan_extrema(xseg.pts)...))
|
expand_extrema!(axis, widen(ignorenan_extrema(xseg.pts)...))
|
||||||
|
|
||||||
# switch back
|
# switch back
|
||||||
if !isvert
|
if !isvertical(plotattributes)
|
||||||
xseg, yseg = yseg, xseg
|
xseg, yseg = yseg, xseg
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user