Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit afe34c5

Browse files
committed
Fix missing label fail
1 parent 48ebde0 commit afe34c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def __call__(self, *args, data=None, **kwargs):
293293
replaced[label_namer_idx], args[label_namer_idx])
294294
args = replaced
295295

296-
if len(args) >= 4 and not cbook.is_scalar_or_string(kwargs["label"]):
296+
if len(args) >= 4 and not cbook.is_scalar_or_string(kwargs.get("label")):
297297
raise ValueError("plot() with multiple groups of data (i.e., "
298298
"pairs of x and y) does not support multiple "
299299
"labels")

0 commit comments

Comments
 (0)