File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 12
12
"font.family" : "serif" , # use serif/main font for text elements
13
13
"text.usetex" : True , # use inline math for ticks
14
14
"pgf.rcfonts" : False , # don't setup fonts from rc parameters
15
- "pgf.preamble" : [
15
+ "pgf.preamble" : " \n " . join ( [
16
16
"\\ usepackage{units}" , # load additional packages
17
17
"\\ usepackage{metalogo}" ,
18
18
"\\ usepackage{unicode-math}" , # unicode math setup
19
19
r"\setmathfont{xits-math.otf}" ,
20
20
r"\setmainfont{DejaVu Serif}" , # serif font via preamble
21
- ]
21
+ ])
22
22
})
23
23
24
24
plt .figure (figsize = (4.5 , 2.5 ))
Original file line number Diff line number Diff line change 8
8
import matplotlib .pyplot as plt
9
9
plt .rcParams .update ({
10
10
"pgf.texsystem" : "pdflatex" ,
11
- "pgf.preamble" : [
11
+ "pgf.preamble" : " \n " . join ( [
12
12
r"\usepackage[utf8x]{inputenc}" ,
13
13
r"\usepackage[T1]{fontenc}" ,
14
14
r"\usepackage{cmbright}" ,
15
- ]
15
+ ]),
16
16
})
17
17
18
18
plt .figure (figsize = (4.5 , 2.5 ))
You can’t perform that action at this time.
0 commit comments