Skip to content

Commit 07387d2

Browse files
flake8
1 parent 47de63b commit 07387d2

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

examples/text_labels_and_annotations/legend.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@
2424

2525
#Creates an arrow with pre-defined label.
2626
ax.annotate("",
27-
xy=(1.5,4.5),
28-
xytext=(1.5,9.0),
29-
arrowprops={'arrowstyle':'<->', 'color':'C7'},
30-
label='distance')
27+
xy=(1.5,4.5), xytext=(1.5,9.0),
28+
arrowprops={'arrowstyle':'<->', 'color':'C7'}, label='distance')
3129

3230
legend = ax.legend(loc='upper center', shadow=True, fontsize='x-large')
3331

lib/matplotlib/legend_handler.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -748,13 +748,13 @@ class HandlerAnnotation(HandlerBase):
748748
Parameters
749749
----------
750750
pad : float, optional
751-
If None, fall back to `legend.borderpad` asstr the default.
752-
In units of fraction of font size.
753-
Default is None.
751+
If None, fall back to `legend.borderpad` asstr the default.
752+
In units of fraction of font size.
753+
Default is None.
754754
width_ratios : tuple, optional
755-
The relative width of the respective text/arrow legend annotation pair.
756-
Must be of length 2.
757-
Default is [1,4].
755+
The relative width of the respective text/arrow legend annotation pair.
756+
Must be of length 2.
757+
Default is [1,4].
758758
"""
759759

760760
def __init__(

0 commit comments

Comments
 (0)