File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -53,12 +53,14 @@ def use(name):
53
53
mpl .rcParams .update (library [style ])
54
54
else :
55
55
try :
56
- settings = mpl ._rc_params_in_file (style )
57
- mpl .rcParams .update (settings )
56
+ rc = rc_params_from_file (style , use_default_template = False )
57
+ print rc
58
+ print type (rc )
59
+ mpl .rcParams .update (rc )
58
60
except :
59
61
msg = ("'%s' not found in the style library and input is "
60
- "not a valid URL. See `style.available` for list of "
61
- "available styles." )
62
+ "not a valid URL or path . See `style.available` for "
63
+ "list of available styles." )
62
64
raise ValueError (msg % style )
63
65
64
66
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ def test_use_url():
50
50
with temp_style ('test' , DUMMY_SETTINGS ):
51
51
style .use ('https://gist.github.com/adrn/6590261/raw' )
52
52
53
- assert mpl .rcParams ['axes.facecolor' ] == "adeade"
53
+ assert mpl .rcParams ['axes.facecolor' ] == "# adeade"
54
54
55
55
def test_context ():
56
56
mpl .rcParams [PARAM ] = 'gray'
You can’t perform that action at this time.
0 commit comments