Skip to content

Commit 782d91a

Browse files
authored
apply code suggestions
1 parent a0f8fdc commit 782d91a

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

examples/text_labels_and_annotations/font_family_rc.py

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
2727
.. redirect-from:: /examples/font_family_rc_sgskip
2828
29-
Chooses default sans-serif font:
30-
--------------------------------
29+
Chooses default sans-serif font
30+
-------------------------------
3131
"""
3232

3333
import matplotlib.pyplot as plt
@@ -46,36 +46,27 @@ def print_text(text):
4646

4747
#################################################################
4848
#
49-
# Chose sans-serif font and specify to it to "Nimbus Sans":
50-
# -----------------------------------------------------
49+
# Chose sans-serif font and specify to it to "Nimbus Sans"
50+
# --------------------------------------------------------
5151

5252
plt.rcParams["font.family"] = "sans-serif"
5353
plt.rcParams["font.sans-serif"] = ["Nimbus Sans"]
5454
print_text("Hello World! 02")
5555

5656

57-
#################################################################
58-
#
59-
# Chose sans-serif font and specify to it to "Humor Sans":
60-
# -----------------------------------------------------
61-
plt.rcParams["font.family"] = "sans-serif"
62-
plt.rcParams["font.sans-serif"] = ["Humor Sans"]
63-
print_text("Hello World! 03")
64-
65-
6657
##################################################################
6758
#
68-
# Chooses default monospace font:
69-
# -----------------------------------------------------
59+
# Chooses default monospace font
60+
# ------------------------------
7061

7162
plt.rcParams["font.family"] = "monospace"
7263
print_text("Hello World! 04")
7364

7465

7566
##################################################################
7667
#
77-
# Chose monospace font and specify to it to "FreeMono":
78-
# -----------------------------------------------------
68+
# Chose monospace font and specify to it to "FreeMono"
69+
# ----------------------------------------------------
7970
plt.rcParams["font.family"] = "monospace"
8071
plt.rcParams["font.monospace"] = ["FreeMono"]
8172
print_text("Hello World! 05")

0 commit comments

Comments
 (0)