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

Skip to content

Commit c93a5e9

Browse files
committed
mplconfig was not reading .conf file in mpl-data
svn path=/trunk/matplotlib/; revision=3644
1 parent 13b3e85 commit c93a5e9

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

lib/matplotlib/config/cutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def get_config_file(tconfig=False):
172172
return fname
173173

174174
fname = os.path.join(get_configdir(), filename)
175-
if os.path.exists(fname) or tconfig: return fname
175+
if os.path.exists(fname): return fname
176176

177177

178178
path = get_data_path() # guaranteed to exist or raise

lib/matplotlib/config/mplconfig.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import pytz
1616

1717
# Code begins
18+
DEBUG = False
1819

1920
##############################################################################
2021
# Main Config class follows
@@ -172,7 +173,7 @@ class axes(TConfig):
172173
facecolor = T.Trait('white', mplT.ColorHandler())
173174
edgecolor = T.Trait('black', mplT.ColorHandler())
174175
linewidth = T.Float(1.0)
175-
grid = T.Trait(True, mplT.BoolHandler())
176+
grid = T.Trait(False, mplT.BoolHandler())
176177
polargrid = T.Trait(True, mplT.BoolHandler())
177178
titlesize = T.Trait('large', 'xx-small', 'x-small', 'small', 'medium',
178179
'large', 'x-large', 'xx-large', T.Float)
@@ -467,6 +468,8 @@ def has_key(self, val):
467468
config_file = cutils.get_config_file(tconfig=True)
468469
CONVERT = False
469470

471+
if DEBUG: print 'loading', config_file
472+
470473
configManager = TConfigManager(MPLConfig,
471474
config_file,
472475
filePriority=True)

lib/matplotlib/mpl-data/matplotlib.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ units = False
124124

125125
color = 'blue'
126126

127-
# The default marker: None, 'o', '.', ',', '^', 'v', '<', '>', 's', '+',
127+
# The default marker: 'None', 'o', '.', ',', '^', 'v', '<', '>', 's', '+',
128128
# 'x', 'D', 'd', '1', '2', '3', '4', 'h', 'H', 'p', '|', '_'
129-
marker = None
129+
marker = 'None'
130130

131131
# the line width around the marker symbol
132132
markeredgewidth = 0.5

0 commit comments

Comments
 (0)