Skip to content

Commit b8fb39e

Browse files
authored
fix import
1 parent 14c2de8 commit b8fb39e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/text_labels_and_annotations/font_family_rc.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,15 @@
3030
3131
The font font.family defaults are OS dependent and can be viewed with
3232
"""
33+
import matplotlib.pyplot as plt
34+
3335
print(plt.rcParams["font.sans-serif"][0])
3436
print(plt.rcParams["font.monospace"][0])
3537

3638

3739
#################################################################
3840
# Chooses default sans-serif font
3941

40-
import matplotlib.pyplot as plt
41-
42-
4342
def print_text(text):
4443
fig, ax = plt.subplots(figsize=(6, 1), facecolor="#eefade")
4544
ax.text(0.5, 0.5, text, ha='center', va='center', size=40)

0 commit comments

Comments
 (0)