correct update from Nullables
well that was embarrassing.
This commit is contained in:
parent
ecd589e747
commit
0dc2edbd98
@ -450,7 +450,7 @@ function series_annotations(strs::AbstractVector, args...)
|
|||||||
scalefactor = (1,1)
|
scalefactor = (1,1)
|
||||||
for arg in args
|
for arg in args
|
||||||
if isa(arg, Shape) || (isa(arg, AbstractVector) && eltype(arg) == Shape)
|
if isa(arg, Shape) || (isa(arg, AbstractVector) && eltype(arg) == Shape)
|
||||||
shp = Union{Any, Nothing}()
|
shp = Union{Any, Nothing}(arg)
|
||||||
elseif isa(arg, Font)
|
elseif isa(arg, Font)
|
||||||
fnt = arg
|
fnt = arg
|
||||||
elseif isa(arg, Symbol) && haskey(_shapes, arg)
|
elseif isa(arg, Symbol) && haskey(_shapes, arg)
|
||||||
|
|||||||
@ -14,9 +14,9 @@ function current()
|
|||||||
if isplotnull()
|
if isplotnull()
|
||||||
error("No current plot/subplot")
|
error("No current plot/subplot")
|
||||||
end
|
end
|
||||||
get(CURRENT_PLOT.nullableplot)
|
CURRENT_PLOT.nullableplot
|
||||||
end
|
end
|
||||||
current(plot::AbstractPlot) = (CURRENT_PLOT.nullableplot == nothing)
|
current(plot::AbstractPlot) = (CURRENT_PLOT.nullableplot = plot)
|
||||||
|
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user