From 244b97e89b06995c2730635240f1b90fa3280ef4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Tue, 31 Mar 2020 12:04:19 +0200 Subject: [PATCH] [python] matplotlib: handle case plot([],[]) --- python/port/mod/matplotlib/pyplot/modpyplot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/port/mod/matplotlib/pyplot/modpyplot.cpp b/python/port/mod/matplotlib/pyplot/modpyplot.cpp index 0a0c7de73..0b1e5a808 100644 --- a/python/port/mod/matplotlib/pyplot/modpyplot.cpp +++ b/python/port/mod/matplotlib/pyplot/modpyplot.cpp @@ -332,7 +332,7 @@ mp_obj_t modpyplot_plot(size_t n_args, const mp_obj_t *args) { } KDColor color = Palette::nextDataColor(&paletteIndex); - for (size_t i=0; iaddSegment(xItems[i], yItems[i], xItems[i+1], yItems[i+1], color, false); }