Skip to content

Different paths for get_configdir and matplotlib_fname() #3062

Closed
@amelio-vazquez-reina

Description

@amelio-vazquez-reina

I work in a Linux system that uses a rather unconventional HOME directory. However, the HOME environment is always set up properly.

> echo $HOME
> /opt/my_home_directory/

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:

> matplotlib.get_configdir()
'/opt/my_home_directory/.matplotlib`
>matplotlib.matplotlib_fname()
'/some/long/path/anaconda/envs/py27/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc

The second one is wrong. I want to use matplotlibrc under my $HOME directory. Why does matplotlib return two different paths, and how can I make it use the one I want?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty: Easyhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesDocumentation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions