Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7f55b9e

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

File tree

Expand file treeCollapse file tree

1 file changed

+28
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+28
-0
lines changed

‎doc/api/api_changes.rst

Copy file name to clipboardExpand all lines: doc/api/api_changes.rst
+28Lines 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 accept `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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.