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_1.5.3.rst

f3e0.css" /> matplotlib/doc/api/prev_api_changes/api_changes_1.5.3.rst at main · matplotlib/matplotlib · GitHub
Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 1.35 KB

File metadata and controls

26 lines (22 loc) · 1.35 KB

API Changes in 1.5.3

ax.plot(..., marker=None) gives default marker

Prior to 1.5.3 keyword arguments passed to ~matplotlib.axes.Axes.plot were handled in two parts -- default keyword arguments generated internal to ~matplotlib.axes.Axes.plot (such as the cycled styles) and user supplied keyword arguments. The internally generated keyword arguments were passed to the matplotlib.lines.Line2D and the user keyword arguments were passed to ln.set(**kwargs) to update the artist after it was created. Now both sets of keyword arguments are merged and passed to ~matplotlib.lines.Line2D. This change was made to allow None to be passed in via the user keyword arguments to mean 'do the default thing' as is the convention through out Matplotlib rather than raising an exception.

Unlike most ~matplotlib.lines.Line2D setter methods ~matplotlib.lines.Line2D.set_marker did accept None as a valid input which was mapped to 'no marker'. Thus, by routing this marker=None through __init__ rather than set(...) the meaning of ax.plot(..., marker=None) changed from 'no markers' to 'default markers from rcparams'.

This is change is only evident if mpl.rcParams['lines.marker'] has a value other than 'None' (which is string 'None' which means 'no marker').

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