Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2847ad3 commit ceb66d4Copy full SHA for ceb66d4
lib/matplotlib/__init__.py
@@ -716,6 +716,12 @@ def rc_params(fail_on_error=False):
716
warnings.warn(message)
717
return ret
718
719
+ return rc_params_from_file(fname, fail_on_error)
720
+
721
722
+def rc_params_from_file(fname, fail_on_error=False):
723
+ """Load and return params from fname."""
724
725
cnt = 0
726
rc_temp = {}
727
with open(fname) as fd:
@@ -898,6 +904,13 @@ def rcdefaults():
898
904
"""
899
905
rcParams.update(rcParamsDefault)
900
906
907
+def rcfile(fname):
908
+ """
909
+ Update rc params from file.
910
911
+ rcParams.update(rc_params_from_file(fname))
912
913
901
914
def rc_file_defaults():
902
915
903
916
Restore the default rc params from the original matplotlib rc that
0 commit comments