Merge pull request #2371 from daschw/label

Allow `label = nothing, :none, false`
This commit is contained in:
Daniel Schwabeneder 2020-01-28 10:30:28 +01:00 committed by GitHub
commit 84a8039022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1643,6 +1643,7 @@ function _update_series_attributes!(plotattributes::KW, plt::Plot, sp::Subplot)
# set label
label = plotattributes[:label]
label = (label == "AUTO" ? "y$globalIndex" : label)
label = label in (:none, nothing, false) ? "" : label
plotattributes[:label] = label
_replace_linewidth(plotattributes)