You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseRuntimeError('Could not write to MPLCONFIGDIR="%s"'%configdir)
497
+
return_create_tmp_config_dir()
486
498
returnconfigdir
487
499
488
500
h=get_home()
489
501
p=os.path.join(get_home(), '.matplotlib')
490
502
491
503
ifos.path.exists(p):
492
504
ifnot_is_writable_dir(p):
493
-
raiseRuntimeError("'%s' is not a writable dir; you must set %s/.matplotlib to be a writable dir. You can also set environment variable MPLCONFIGDIR to any writable directory where you want matplotlib data stored "% (h, h))
505
+
return_create_tmp_config_dir()
494
506
else:
495
507
ifnot_is_writable_dir(h):
496
-
raiseRuntimeError("Failed to create %s/.matplotlib; consider setting MPLCONFIGDIR to a writable directory for matplotlib configuration data"%h)
508
+
return_create_tmp_config_dir()
497
509
frommatplotlib.cbookimportmkdirs
498
510
mkdirs(p)
499
511
@@ -922,7 +934,7 @@ class rc_context(object):
922
934
>>> with mpl.rc_context(fname='print.rc'):
923
935
>>> plt.plot(x, b)
924
936
>>> plt.plot(x, c)
925
-
937
+
926
938
The 'a' vs 'x' and 'c' vs 'x' plots would have settings from
927
939
'screen.rc', while the 'b' vs 'x' plot would have settings from
0 commit comments