File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 88import matplotlib .pyplot as plt
99plt .rcParams .update ({
1010 "font.family" : "serif" ,
11- "font.serif" : [], # use latex default serif font
12- "font.sans-serif" : ["DejaVu Sans" ], # use a specific sans-serif font
11+ # Use LaTeX default serif font.
12+ "font.serif" : [],
13+ # Use specific cursive fonts.
14+ "font.cursive" : ["Comic Neue" , "Comic Sans MS" ],
1315})
1416
1517fig , ax = plt .subplots (figsize = (4.5 , 2.5 ))
1820
1921ax .text (0.5 , 3. , "serif" )
2022ax .text (0.5 , 2. , "monospace" , family = "monospace" )
21- ax .text (2.5 , 2. , "sans-serif" , family = "sans-serif" )
22- ax .text (2.5 , 1. , "comic sans " , family = "Comic Sans MS " )
23+ ax .text (2.5 , 2. , "sans-serif" , family = "DejaVu Sans" ) # Use specific sans font.
24+ ax .text (2.5 , 1. , "comic" , family = "cursive " )
2325ax .set_xlabel ("µ is not $\\ mu$" )
2426
2527fig .tight_layout (pad = .5 )
You can’t perform that action at this time.
0 commit comments