@@ -1115,7 +1115,7 @@ def _validate_linestyle(ls):
11151115 'text.color' : ['black' , validate_color ],
11161116 'text.usetex' : [False , validate_bool ],
11171117 'text.latex.unicode' : [True , validate_bool ],
1118- 'text.latex.preamble' : [['' ], validate_stringlist ],
1118+ 'text.latex.preamble' : [[], validate_stringlist ],
11191119 'text.latex.preview' : [False , validate_bool ],
11201120 'text.dvipnghack' : [None , validate_bool_maybe_none ],
11211121 'text.hinting' : ['auto' , validate_hinting ],
@@ -1391,7 +1391,7 @@ def _validate_linestyle(ls):
13911391 # use matplotlib rc settings for font configuration
13921392 'pgf.rcfonts' : [True , validate_bool ],
13931393 # provide a custom preamble for the latex process
1394- 'pgf.preamble' : [['' ], validate_stringlist ],
1394+ 'pgf.preamble' : [[], validate_stringlist ],
13951395
13961396 # write raster image data directly into the svg file
13971397 'svg.image_inline' : [True , validate_bool ],
@@ -1412,7 +1412,7 @@ def _validate_linestyle(ls):
14121412 'agg.path.chunksize' : [0 , validate_int ], # 0 to disable chunking;
14131413
14141414 # key-mappings (multi-character mappings should be a list/tuple)
1415- 'keymap.fullscreen' : [( 'f' , 'ctrl+f' ) , validate_stringlist ],
1415+ 'keymap.fullscreen' : [[ 'f' , 'ctrl+f' ] , validate_stringlist ],
14161416 'keymap.home' : [['h' , 'r' , 'home' ], validate_stringlist ],
14171417 'keymap.back' : [['left' , 'c' , 'backspace' ], validate_stringlist ],
14181418 'keymap.forward' : [['right' , 'v' ], validate_stringlist ],
@@ -1463,11 +1463,3 @@ def _validate_linestyle(ls):
14631463 # altogether. For that use `matplotlib.style.use('classic')`.
14641464 '_internal.classic_mode' : [False , validate_bool ]
14651465}
1466-
1467-
1468- if __name__ == '__main__' :
1469- rc = defaultParams
1470- rc ['datapath' ][0 ] = '/'
1471- for key in rc :
1472- if not rc [key ][1 ](rc [key ][0 ]) == rc [key ][0 ]:
1473- print ("%s: %s != %s" % (key , rc [key ][1 ](rc [key ][0 ]), rc [key ][0 ]))
0 commit comments