Allow label = nothing, :none, false

This commit is contained in:
daschw 2020-01-27 21:30:05 +01:00
parent d709b53ec7
commit 8011c9f675

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)