8000 MNT: Warn on using pixel marker for scatter() · matplotlib/matplotlib@bc60ed4 · GitHub
[go: up one dir, main page]

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 bc60ed4

Browse files
committed
MNT: Warn on using pixel marker for scatter()
Improves on #11460.
1 parent 3aebcb7 commit bc60ed4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4933,6 +4933,12 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
49334933
# load default marker from rcParams
49344934
if marker is None:
49354935
marker = mpl.rcParams['scatter.marker']
4936+
if marker == ",":
4937+
_api.warn_external(
4938+
"The pixel maker ',' is not supported on scatter(). Fallback "
4939+
"to a finite-sized square, which is not necessarily 1 pixel in "
4940+
"size. Use the square marker 's' instead to suppress this warning."
4941+
)
49364942

49374943
if isinstance(marker, mmarkers.MarkerStyle):
49384944
marker_obj = marker

0 commit comments

Comments
 (0)
0