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

Skip to content

Commit 0086ed0

Browse files
committed
Minor fix to check on text.latex.preamble.
Don't warn via the verbose system when text.latex.preamble is an empty list (rather than a list containing an empty string). Run the simple_plot.py example with the --verbose-helpful flag to see the difference.
1 parent eb6e422 commit 0086ed0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ def rc_params_from_file(fname, fail_on_error=False, use_default_template=True):
11151115
if config['datapath'] is None:
11161116
config['datapath'] = get_data_path()
11171117

1118-
if not config['text.latex.preamble'] == ['']:
1118+
if "".join(config['text.latex.preamble']):
11191119
verbose.report("""
11201120
*****************************************************************
11211121
You have the following UNSUPPORTED LaTeX preamble customizations:

0 commit comments

Comments
 (0)