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

Skip to content

Commit e589aa8

Browse files
committed
Correct typos in _axes.py and legend.py
1 parent 7cc1e72 commit e589aa8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4546,8 +4546,8 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
45464546
# promote the facecolor to be the edgecolor
45474547
edgecolors = colors
45484548
# set the facecolor to 'none' (at the last chance) because
4549-
# we can not not fill a path if the facecolor is non-null.
4550-
# (which is defendable at the renderer level)
4549+
# we can not fill a path if the facecolor is non-null
4550+
# (which is defendable at the renderer level).
45514551
colors = 'none'
45524552
else:
45534553
# if we are not nulling the face color we can do this

lib/matplotlib/legend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,11 +714,11 @@ def _init_legend_box(self, handles, labels, markerfirst=True):
714714
# legend items. Each legend item is HPacker packed with
715715
# legend handleBox and labelBox. handleBox is an instance of
716716
# offsetbox.DrawingArea which contains legend handle. labelBox
717-
# is an instance of offsetbox.TextArea which contains legend
717+
# is an instance of offsetbox. TextArea which contains legend
718718
# text.
719719

720720
text_list = [] # the list of text instances
721-
handle_list = [] # the list of text instances
721+
handle_list = [] # the list of handle instances
722722
handles_and_labels = []
723723

724724
label_prop = dict(verticalalignment='baseline',

0 commit comments

Comments
 (0)