plotlyjs fix
This commit is contained in:
parent
b28cd7f8bd
commit
d09ca46141
@ -54,12 +54,15 @@ end
|
|||||||
|
|
||||||
|
|
||||||
function _add_annotations{X,Y,V}(plt::Plot{PlotlyJSPackage}, anns::AVec{@compat(Tuple{X,Y,V})})
|
function _add_annotations{X,Y,V}(plt::Plot{PlotlyJSPackage}, anns::AVec{@compat(Tuple{X,Y,V})})
|
||||||
# set or add to the annotation_list
|
# set or add to the annotation_list
|
||||||
if haskey(plt.plotargs, :annotation_list)
|
@show typeof(anns), typeof(get(plt.plotargs, :annotation_list, nothing))
|
||||||
|
if !haskey(plt.plotargs, :annotation_list)
|
||||||
|
plt.plotargs[:annotation_list] = Any[]
|
||||||
|
end
|
||||||
append!(plt.plotargs[:annotation_list], anns)
|
append!(plt.plotargs[:annotation_list], anns)
|
||||||
else
|
# else
|
||||||
plt.plotargs[:annotation_list] = anns
|
# plt.plotargs[:annotation_list] = anns
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
|
|
||||||
# ----------------------------------------------------------------
|
# ----------------------------------------------------------------
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user