-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Document $MATPLOTLIBRC #5265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Do you have any specific need for more than one rc file? In most cases I would recommend using the style module to customise your plot. See http://matplotlib.org/users/style_sheets.html |
The idea is that when working on a publication with multiple people, the output should be the same for everyone. This requires the styles to be bundled with the scripts. A I guess setting |
If you care about the backend I would explicitly set it in the script. ```matplotlib.use('QT4Agg')` or whatever.
Also note that the rc file in the current directly should always overwrite the one in the homedir http://matplotlib.org/users/customizing.html this is of cause not enough if you have your plot scripts in multiple directories. All of this does not mean that we should not document the env variable. That should be clearly be documented. |
I use the pgf backend with a custom preamble and so the labels will not work without the rc file anyway. Therefore I like to keep the scripts as short as possible and remove the error of not setting the backend in one of them. I also have multiple folders with scripts and want to use a single rc file. I know that the rc file overrides the one in home. The problem is that without an rc file, for example if using a stylesheet instead, the one from home would be loaded. I think there should be an option to put matplotlib into a reproducible mode where nothing is ever loaded from home. The question is where to put this option. Anyway, the system is fine now as long as no one forgets to include an rc file that is found by matplotlib. |
Pretty sure this is documented on master |
Doesn't look like it: https://github.com/matplotlib/matplotlib/blob/master/doc/users/customizing.rst#the-filematplotlibrc-file |
Huh, I could have sworn I remembered a PR about this going by, never mind then. |
Would you be open to adding functionality to also specify the filename? |
The documentation does not mention the very useful
MATPLOTLIBRC
environment variable.The variable would be even more useful if the file did not have to be called
matplotlibrc
.The text was updated successfully, but these errors were encountered: