forget plot if no label is provided

This commit is contained in:
Kristoffer Carlsson 2016-09-06 15:48:27 +02:00 committed by GitHub
parent 12230f1fc9
commit cf381880a5

View File

@ -149,6 +149,8 @@ function pgf_series(sp::Subplot, series::Series)
# add to legend? # add to legend?
if sp[:legend] != :none && should_add_to_legend(series) if sp[:legend] != :none && should_add_to_legend(series)
kw[:legendentry] = d[:label] kw[:legendentry] = d[:label]
else
push!(style, "forget plot")
end end
# function args # function args