Skip to content

Commit 5bae864

Browse files
authored
add brackets
1 parent 763a0fc commit 5bae864

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/text_labels_and_annotations/font_family_rc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ def print_text(text):
4646
# Second example:
4747

4848
plt.rcParams["font.family"] = "sans-serif"
49-
plt.rcParams["font.sans-serif"] = "Tahoma"
49+
plt.rcParams["font.sans-serif"] = ["Tahoma"]
5050
print_text("Hello World! 02")
5151

5252
#############################################################################
5353
#
5454
# Third example:
5555

5656
plt.rcParams["font.family"] = "sans-serif"
57-
plt.rcParams["font.sans-serif"] = "Lucida Grande"
57+
plt.rcParams["font.sans-serif"] = ["Lucida Grande"]
5858
print_text("Hello World! 03")
5959

6060
#############################################################################
@@ -69,5 +69,5 @@ def print_text(text):
6969
# Fifth example:
7070

7171
plt.rcParams["font.family"] = "monospace"
72-
plt.rcParams["font.monospace"] = "Menlo"
72+
plt.rcParams["font.monospace"] = ["Menlo"]
7373
print_text("Hello World! 05")

0 commit comments

Comments
 (0)