1
2API Changes in 2.1.2
3====================
4
5`.Figure.legend` no longer checks for repeated lines to ignore
6--------------------------------------------------------------
7
8`matplotlib.figure.Figure.legend` used to check if a line had the
9same label as an existing legend entry. If it also had the same line color
10or marker color legend didn't add a new entry for that line. However, the
11list of conditions was incomplete, didn't handle RGB tuples,
12didn't handle linewidths or linestyles etc.
13
14This logic did not exist in `.axes.Axes.legend`.  It was included (erroneously)
15in Matplotlib 2.1.1 when the legend argument parsing was unified
16[#9324](https://github.com/matplotlib/matplotlib/pull/9324).  This change
17removes that check in `.axes.Axes.legend` again to restore the old behavior.
18
19This logic has also been dropped from `.Figure.legend`, where it
20was previously undocumented. Repeated
21lines with the same label will now each have an entry in the legend.  If
22you do not want the duplicate entries, don't add a label to the line, or
23prepend the label with an underscore.
24