Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit585d128

Browse files
committed
Merge pull request#6328 from benjamincongdon/ft-scatter-marker-rc
Add default scatter marker option to rcParams
2 parents9533cc6 +e9a96e8 commit585d128

File tree

6 files changed

+18
-2
lines changed

6 files changed

+18
-2
lines changed

‎doc/users/whats_new/rcparams.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Configuration (rcParams)
1616
+----------------------------+--------------------------------------------------+
1717
|`date.autoformatter.second`| format string for 'second' scale times|
1818
+----------------------------+--------------------------------------------------+
19+
|`scatter.marker`| default marker for scatter plot|
20+
+----------------------------+--------------------------------------------------+
1921
|`svg.hashsalt`| see note|
2022
+----------------------------+--------------------------------------------------+
2123

‎lib/matplotlib/axes/_axes.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3733,7 +3733,7 @@ def dopatch(xs, ys, **kwargs):
37333733
'facecolors','color'],
37343734
label_namer="y")
37353735
@docstring.dedent_interpd
3736-
defscatter(self,x,y,s=None,c=None,marker='o',cmap=None,norm=None,
3736+
defscatter(self,x,y,s=None,c=None,marker=None,cmap=None,norm=None,
37373737
vmin=None,vmax=None,alpha=None,linewidths=None,
37383738
verts=None,edgecolors=None,
37393739
**kwargs):
@@ -3905,6 +3905,10 @@ def scatter(self, x, y, s=None, c=None, marker='o', cmap=None, norm=None,
39053905

39063906
scales=s# Renamed for readability below.
39073907

3908+
# load default marker from rcParams
3909+
ifmarkerisNone:
3910+
marker=rcParams['scatter.marker']
3911+
39083912
# to be API compatible
39093913
ifmarkerisNoneandnot (vertsisNone):
39103914
marker= (verts,0)

‎lib/matplotlib/mpl-data/stylelib/classic.mplstyle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,9 @@ contour.corner_mask : True
325325
# errorbar props
326326
errorbar.capsize: 3
327327

328+
# scatter props
329+
scatter.marker: o
330+
328331
### Boxplots
329332
boxplot.bootstrap: None
330333
boxplot.boxprops.color: b

‎lib/matplotlib/pyplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3138,7 +3138,7 @@ def quiverkey(*args, **kw):
31383138
# This function was autogenerated by boilerplate.py. Do not edit as
31393139
# changes will be lost
31403140
@_autogen_docstring(Axes.scatter)
3141-
defscatter(x,y,s=None,c=None,marker='o',cmap=None,norm=None,vmin=None,
3141+
defscatter(x,y,s=None,c=None,marker=None,cmap=None,norm=None,vmin=None,
31423142
vmax=None,alpha=None,linewidths=None,verts=None,edgecolors=None,
31433143
hold=None,data=None,**kwargs):
31443144
ax=gca()

‎lib/matplotlib/rcsetup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,6 +1068,10 @@ def validate_animation_writer_path(p):
10681068
'polaraxes.grid': [True,validate_bool],# display polar grid or
10691069
# not
10701070
'axes3d.grid': [True,validate_bool],# display 3d grid
1071+
1072+
# scatter props
1073+
'scatter.marker': ['o',six.text_type],
1074+
10711075
# TODO validate that these are valid datetime format strings
10721076
'date.autoformatter.year': ['%Y',six.text_type],
10731077
'date.autoformatter.month': ['%Y-%m',six.text_type],

‎matplotlibrc.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,9 @@ backend : $TEMPLATE_BACKEND
461461
# If Numpy 1.11 or later is
462462
# installed, may also be `auto`
463463

464+
### SCATTER PLOTS
465+
#scatter.marker : o # The default marker type for scatter plots.
466+
464467
### Agg rendering
465468
### Warning: experimental, 2008/10/10
466469
#agg.path.chunksize : 0 # 0 to disable; values in the range

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp