Merge pull request #706 from ma-laforge/inspectdr

InspectDR: Reflect changes to support delta markers.
This commit is contained in:
Tom Breloff 2017-03-01 10:06:27 -05:00 committed by GitHub
commit 31c665a837

View File

@ -213,14 +213,10 @@ end
# Set up the subplot within the backend object.
function _initialize_subplot(plt::Plot{InspectDRBackend}, sp::Subplot{InspectDRBackend})
plot = sp.o
#Don't do anything without a "subplot" object: Will process later.
if nothing == plot; return; end
plot.data = []
plot.markers = [] #Clear old markers
plot.atext = [] #Clear old annotation
plot.apline = [] #Clear old poly lines
plot.userannot = [] #Clear old markers/text annotation/polyline "annotation"
return plot
end
@ -277,7 +273,7 @@ For st in :shape:
apline = InspectDR.PolylineAnnotation(
x[rng], y[rng], line=line, fillcolor=fillcolor
)
push!(plot.apline, apline)
InspectDR.add(plot, apline)
end
end