Skip to content

Commit c507f74

Browse files
committed
.plot.pie legend defaults to False
it does not bring any more information than there already is
1 parent 3b2b3f3 commit c507f74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

larray/core/array.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ def area(self, x=None, y=None, **kwds):
587587
return self(kind='area', x=x, y=y, **kwds)
588588

589589
@_use_pandas_plot_docstring
590-
def pie(self, y=None, **kwds):
590+
def pie(self, y=None, legend=False, **kwds):
591591
if y is None:
592592
# add a dummy axis with blank name and a 'value' label and plot that label to avoid 'None' labels for
593593
# each subplot (when used) if we had used y = () instead
@@ -601,7 +601,7 @@ def pie(self, y=None, **kwds):
601601
if 'normalize' not in kwds:
602602
kwds['normalize'] = True
603603

604-
ax = self(kind='pie', y=y, **kwds)
604+
ax = self(kind='pie', y=y, legend=legend, **kwds)
605605

606606
# if we created the Axes and we have subplots, hide all x axis because as of now
607607
# (pandas 1.3.0 and matplotlib 3.3.4) there are some ugly and useless x axes

0 commit comments

Comments
 (0)