10000 Fix broken link to proxy artists documentation · matplotlib/matplotlib@91e1208 · GitHub
[go: up one dir, main page]

Skip to content

Commit 91e1208

Browse files
authored
Fix broken link to proxy artists documentation
http://matplotlib.org/users/legend_guide.html#using-proxy-artist refers to a named anchor that is unavailable.
1 parent 28ae8eb commit 91e1208

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/legend.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,11 +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"
619620
warnings.warn(
620621
"Legend does not support {!r} instances.\nA proxy artist "
621622
"may be used instead.\nSee: "
622623
"http://matplotlib.org/users/legend_guide.html"
623-
"#using-proxy-artist".format(orig_handle)
624+
"{}".format(orig_handle, fragment)
624625
)
625626
# We don't have a handle for this artist, so we just defer
626627
# to None.

0 commit comments

Comments
 (0)
0