-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Different paths for get_configdir and matplotlib_fname() #3062
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
what does |
Thanks @tacaswell |
What version of mpl are you using? Could you try using the master branch if you are not already? |
The code for matplotlib_fname is found in https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/__init__.py#L715. In pseudo code:
So it looks like the 3rd item isn't being triggered. Do you have a MATPLOTLIBRC environment variable defined? |
I didn't have it set, so I just did:
(I also tried making that variable point to but it didn't fix the problem:
The file
|
It looks like Also, it seems that |
@ribonoous I don't think you have told us what version of mpl you are using (what does |
Thanks I am using 1.3.1 of |
@ribonoous Any progress? |
Hmmm, I hadn't seen that. (ipython/ipython#4457). It is fair enough if a project wants to aim for consistency accross platforms, but I would be a strong proponent of using OS specific recommendations wherever possible in general (and ergo for mpl).
The pseudo code I posted would confirm that - the MATPLOTLIBRC environmental variable (apparently undocumented in my search for it) is used to define the directory containing a If I change MATPLOTLIBRC to piont to a matplotlibrc, it seems to work, although I get a warning saying that I have defined in a deprecated location (instead of ~/.config/matplotlib/matplotlibrc). Is this intentional? (e.g. if I want to use a different location why should I get a warning?). This does seem a little odd. I wonder if there is a little bit of logic missing in the identification of whether a warning needs to be issued. So, in summary, I think the actions for this issue are:
|
I think this has almost certainly been fixed by #5268. Feel free to request a reopen if not. |
I work in a Linux system that uses a rather unconventional
HOME
directory. However, theHOME
environment is always set up properly.I have set up the init files for
matplotlib
properly under:$HOME/matplotlib/matplotlibrc
and also, just in case under:
$HOME/.matplotlib/matplotlibrc
However, when I ask matplotlib, it looks confused:
The second one is wrong. I want to use
matplotlibrc
under my$HOME
directory. Why doesmatplotlib
return two different paths, and how can I make it use the one I want?The text was updated successfully, but these errors were encountered: