File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 "font.family" : "serif" , # use serif/main font for text elements
1313 "text.usetex" : True , # use inline math for ticks
1414 "pgf.rcfonts" : False , # don't setup fonts from rc parameters
15- "pgf.preamble" : [
15+ "pgf.preamble" : " \n " . join ( [
1616 "\\ usepackage{units}" , # load additional packages
1717 "\\ usepackage{metalogo}" ,
1818 "\\ usepackage{unicode-math}" , # unicode math setup
1919 r"\setmathfont{xits-math.otf}" ,
2020 r"\setmainfont{DejaVu Serif}" , # serif font via preamble
21- ]
21+ ])
2222})
2323
2424plt .figure (figsize = (4.5 , 2.5 ))
Original file line number Diff line number Diff line change 88import matplotlib .pyplot as plt
99plt .rcParams .update ({
1010 "pgf.texsystem" : "pdflatex" ,
11- "pgf.preamble" : [
11+ "pgf.preamble" : " \n " . join ( [
1212 r"\usepackage[utf8x]{inputenc}" ,
1313 r"\usepackage[T1]{fontenc}" ,
1414 r"\usepackage{cmbright}" ,
15- ]
15+ ]),
1616})
1717
1818plt .figure (figsize = (4.5 , 2.5 ))
You can’t perform that action at this time.
0 commit comments