Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c2997c4

Browse files
committed
rcsetup
1 parent 9c33288 commit c2997c4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/matplotlib/rcsetup.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -988,12 +988,12 @@ def validate_webagg_address(s):
988988
raise ValueError("'webagg.address' is not a valid IP address")
989989

990990

991-
validate_axes_titlelocation = ValidateInStrings('axes.titlelocation',
992-
['left', 'center', 'right'])
993-
validate_xaxis_labellocation = ValidateInStrings('xaxis.labellocation',
991+
_validate_axes_titlelocation = ValidateInStrings('axes.titlelocation',
994992
['left', 'center', 'right'])
995-
validate_yaxis_labellocation = ValidateInStrings('yaxis.labellocation',
996-
['bottom', 'center', 'top'])
993+
_validate_xaxis_labellocation = ValidateInStrings('xaxis.labellocation',
994+
['left', 'center', 'right'])
995+
_validate_yaxis_labellocation = ValidateInStrings('yaxis.labellocation',
996+
['bottom', 'center', 'top'])
997997

998998
# a map from key -> value, converter
999999
defaultParams = {
@@ -1177,7 +1177,7 @@ def validate_webagg_address(s):
11771177

11781178
'axes.titlesize': ['large', validate_fontsize], # fontsize of the
11791179
# axes title
1180-
'axes.titlelocation': ['center', validate_axes_titlelocation], # alignment of axes title
1180+
'axes.titlelocation': ['center', _validate_axes_titlelocation], # alignment of axes title
11811181
'axes.titleweight': ['normal', validate_fontweight], # font weight of axes title
11821182
'axes.titlecolor': ['auto', validate_color_or_auto], # font color of axes title
11831183
'axes.titlepad': [6.0, validate_float], # pad from axes top to title in points
@@ -1225,8 +1225,8 @@ def validate_webagg_address(s):
12251225
'axes3d.grid': [True, validate_bool], # display 3d grid
12261226

12271227
# axis props
1228-
'xaxis.labellocation': ['center', validate_xaxis_labellocation], # alignment of axis title
1229-
'yaxis.labellocation': ['center', validate_yaxis_labellocation], # alignment of axis title
1228+
'xaxis.labellocation': ['center', _validate_xaxis_labellocation], # alignment of axis title
1229+
'yaxis.labellocation': ['center', _validate_yaxis_labellocation], # alignment of axis title
12301230

12311231
# scatter props
12321232
'scatter.marker': ['o', validate_string],

0 commit comments

Comments
 (0)