pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/matplotlib/matplotlib/blob/main/doc/api/prev_api_changes/api_changes_2.1.2.rst

1f3e0.css" /> matplotlib/doc/api/prev_api_changes/api_changes_2.1.2.rst at main · matplotlib/matplotlib · GitHub
Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 1.01 KB

File metadata and controls

23 lines (18 loc) · 1.01 KB

API Changes in 2.1.2

.Figure.legend no longer checks for repeated lines to ignore

matplotlib.figure.Figure.legend used to check if a line had the same label as an existing legend entry. If it also had the same line color or marker color legend didn't add a new entry for that line. However, the list of conditions was incomplete, didn't handle RGB tuples, didn't handle linewidths or linestyles etc.

This logic did not exist in .axes.Axes.legend. It was included (erroneously) in Matplotlib 2.1.1 when the legend argument parsing was unified :ghpull:`9324`. This change removes that check in .axes.Axes.legend again to restore the old behavior.

This logic has also been dropped from .Figure.legend, where it was previously undocumented. Repeated lines with the same label will now each have an entry in the legend. If you do not want the duplicate entries, don't add a label to the line, or prepend the label with an underscore.

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy