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 b109635

Browse filesBrowse files
committed
BUG: in scatter, check for verts before setting marker to default
Closes #6507
1 parent 74ead7c commit b109635
Copy full SHA for b109635

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3958,15 +3958,15 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
39583958

39593959
scales = s # Renamed for readability below.
39603960

3961-
# load default marker from rcParams
3962-
if marker is None:
3963-
marker = rcParams['scatter.marker']
3964-
39653961
# to be API compatible
39663962
if marker is None and not (verts is None):
39673963
marker = (verts, 0)
39683964
verts = None
39693965

3966+
# load default marker from rcParams
3967+
if marker is None:
3968+
marker = rcParams['scatter.marker']
3969+
39703970
if isinstance(marker, mmarkers.MarkerStyle):
39713971
marker_obj = marker
39723972
else:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.