File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 9
9
# Use LaTeX for rendering
10
10
mpl .rcParams ["text.usetex" ] = True
11
11
# load the xfrac package
12
- mpl .rcParams ["text.latex.preamble" ]. append ( r'\usepackage{xfrac}' )
13
- mpl .rcParams ["text.latex.preamble" ]. append ( r'\newcommand{\myhalf}{\sfrac{1}{2}}' )
14
- mpl .rcParams ["text.latex.preamble" ]. append ( r'\newcommand{\mythreehalf}{\sfrac{3}{2}}' )
15
- mpl .rcParams ["text.latex.preamble" ]. append ( r'\newcommand{\myfivehalf}{\sfrac{5}{2}}' )
12
+ mpl .rcParams ["text.latex.preamble" ] += r'\usepackage{xfrac}'
13
+ mpl .rcParams ["text.latex.preamble" ] += r'\newcommand{\myhalf}{\sfrac{1}{2}}'
14
+ mpl .rcParams ["text.latex.preamble" ] += r'\newcommand{\mythreehalf}{\sfrac{3}{2}}'
15
+ mpl .rcParams ["text.latex.preamble" ] += r'\newcommand{\myfivehalf}{\sfrac{5}{2}}'
16
16
mpl .rcParams ['mathtext.fontset' ] = 'cm'
17
17
mpl .rcParams ['mathtext.rm' ] = 'serif'
18
18
You can’t perform that action at this time.
0 commit comments