8000 DOC: Add missing API change docs for 1.5.3 · matplotlib/matplotlib@7f55b9e · GitHub
[go: up one dir, main page]

Skip to content

Commit 7f55b9e

Browse files
committed
DOC: Add missing API change docs for 1.5.3
closes #7218
1 parent d134631 commit 7f55b9e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

doc/api/api_changes.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,34 @@ sources of the changes you are experiencing.
1111
For new features that were added to matplotlib, please see
1212
:ref:`whats-new`.
1313

14+
Changes in 1.5.3
15+
================
16+
17+
``ax.plot(..., marker=None)`` gives default marker
18+
--------------------------------------------------
19+
20+
Prior to 1.5.3 kwargs passed to `~matplotlib.Axes.plot` were handled
21+
in two parts -- default kwargs generated internal to
22+
`~matplotlib.Axes.plot` (such as the cycled styles) and user supplied
23+
kwargs. The internally generated kwargs were passed to the
24+
`~matplotlib.lines.Line2D.__init__` and the user kwargs were passed to
25+
``ln.set(**kwargs)`` to update the artist after it was created. Now
26+
both sets of kwargs are merged and passed to
27+
`~matplotlib.lines.Line2D.__init__`. This change was made to allow `None`
28+
to be passed in via the user kwargs to mean 'do the default thing' as
29+
is the convention through out mpl rather than raising an exception.
30+
31+
Unlike most `~matplotlib.lines.Line2D` setter methods
32+
`~matplotlib.lines.Line2D.set_marker` did a 793E ccept `None` as a valid
33+
input which was mapped to 'no marker'. Thus, by routing this
34+
``marker=None`` through ``__init__`` rather than ``set(...)`` the meaning
35+
of ``ax.plot(..., marker=None)`` changed from 'no markers' to 'default markers
36+
from rcparams'.
37+
38+
This is change in only evident if ``mpl.rcParams['lines.marker']`` has a value
39+
other than ``'None'`` (which is string ``'None'`` which means 'no marker').
40+
41+
1442
Changes in 1.5.2
1543
================
1644

0 commit comments

Comments
 (0)
0