From a22edb8de91f7275d9a716f88f75bad06d0005f1 Mon Sep 17 00:00:00 2001 From: Lakshya Khatri Date: Thu, 2 Jul 2020 13:46:20 +0530 Subject: [PATCH] Fix ambiguous comparision of label with 0 --- src/args.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/args.jl b/src/args.jl index 05e1cfa1..00be5753 100644 --- a/src/args.jl +++ b/src/args.jl @@ -1639,7 +1639,7 @@ function _update_series_attributes!(plotattributes::AKW, plt::Plot, sp::Subplot) # set label label = plotattributes[:label] label = (label == "AUTO" ? "y$globalIndex" : label) - label = label == 0 ? "0" : label + label = label === 0 ? "0" : label label = label in (:none, nothing, false) ? "" : label plotattributes[:label] = label