InspectDR: Reflect changes to support delta markers.

This commit is contained in:
MA Laforge 2017-02-25 11:33:24 -05:00
parent 9472c0c5e5
commit b0dabaafe8

View File

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