From 753b9d9968d51721be7e07def9e31f454f35aa79 Mon Sep 17 00:00:00 2001 From: Zhangyixue1537 Date: Fri, 15 Mar 2024 14:24:18 +0000 Subject: [PATCH] #8 remove legend box in histogram chart --- rick.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rick.py b/rick.py index d0c8e07..c0e6670 100644 --- a/rick.py +++ b/rick.py @@ -302,7 +302,7 @@ def histogram_chart(data, ylab, xlab, nbin, **kwargs): ax.set_xlabel(xlab) ax.set_ylabel(ylab) ax.set_xlim(xmin, xmax) - ax.legend(loc='upper right') + ax.get_legend().remove() return fig, ax