Skip to content

Commit 455b54c

Browse files
committed
Remove pyplot import
1 parent c8cc486 commit 455b54c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/matplotlib/style/core.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import re
1313

1414
import numpy as np
15-
import matplotlib.pyplot as plt
1615
import matplotlib as mpl
1716

1817

@@ -47,13 +46,13 @@ def use(name):
4746
for style in name:
4847
if is_style_file(style):
4948
settings = mpl.rc_params_in_file(style)
50-
plt.rcParams.update(settings)
49+
mpl.rcParams.update(settings)
5150
elif style not in library:
5251
msg = ("'%s' not found in the style library. "
5352
"See `style.available` for list of available styles.")
5453
raise ValueError(msg % style)
5554
else:
56-
plt.rcParams.update(library[style])
55+
mpl.rcParams.update(library[style])
5756

5857

5958
def load_base_library():

0 commit comments

Comments
 (0)