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

Commitd3a9782

Browse files
committed
Merge pull request#5131 from gauteh/numpoints-1
fix#4854: set default numpoints of legend entries to 1
2 parentseb2b77b +a636f58 commitd3a9782

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎lib/matplotlib/rcsetup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ def validate_animation_writer_path(p):
10511051
'legend.isaxes': [True,validate_bool],
10521052

10531053
# the number of points in the legend line
1054-
'legend.numpoints': [2,validate_int],
1054+
'legend.numpoints': [1,validate_int],
10551055
# the number of points in the legend line for scatter
10561056
'legend.scatterpoints': [3,validate_int],
10571057
'legend.fontsize': ['large',validate_fontsize],

‎matplotlibrc.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ backend : $TEMPLATE_BACKEND
389389
#legend.fancybox : False # if True, use a rounded box for the
390390
# legend, else a rectangle
391391
#legend.isaxes : True
392-
#legend.numpoints :2 # the number of points in the legend line
392+
#legend.numpoints :1 # the number of points in the legend line
393393
#legend.fontsize : large
394394
#legend.borderpad : 0.5 # border whitespace in fontsize units
395395
#legend.markerscale : 1.0 # the relative size of legend markers vs. original

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp