I preinstall matplotlib in /usr/local so that it is preinstalled for users of a container.
I have a file foo.mplstyle file that I put at
$(matplotlib.get_data_path()). Users can activate it with
matplotlib.style.use('foo'). I’m not sure if this is the right way to do what I want, but it works fine.
The problem is that some users install a copy of matplotlib in their home directory or a virtual environment. They therefore lose access too foo.mplstyle because it is not in “their”
I know I can pass a path to
matplotlib.style.use, but I would prefer not to do that (the style will not show up in
matplotlib.style.available, among other problems).
So I’m looking for a global path that all copies of matplotlib will search for styles. Does this exist? Or can it be configured?