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

Skip to content

Commit 87a208c

Browse files
authored
Fix PEP8 Maximum Line Length violation
See #9343 (comment).
1 parent 91e1208 commit 87a208c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/legend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,12 +616,12 @@ def _init_legend_box(self, handles, labels, markerfirst=True):
616616
for orig_handle, lab in zip(handles, labels):
617617
handler = self.get_legend_handler(legend_handler_map, orig_handle)
618618
if handler is None:
619-
fragment = "#creating-artists-specifically-for-adding-to-the-legend-aka-proxy-artists"
620619
warnings.warn(
621620
"Legend does not support {!r} instances.\nA proxy artist "
622621
"may be used instead.\nSee: "
623622
"http://matplotlib.org/users/legend_guide.html"
624-
"{}".format(orig_handle, fragment)
623+
"#creating-artists-specifically-for-adding-to-the-legend-"
624+
"aka-proxy-artists".format(orig_handle)
625625
)
626626
# We don't have a handle for this artist, so we just defer
627627
# to None.

0 commit comments

Comments
 (0)