Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0722bc3

Browse files
committed
Merge pull request #2720 from alimuldal/styles_XDG_compliance
Look for user-specified styles in ~/.config/matplotlib/stylelib
2 parents 3d3a23e + 805ce26 commit 0722bc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/style/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
_here = os.path.abspath(os.path.dirname(__file__))
3131
BASE_LIBRARY_PATH = os.path.join(_here, 'stylelib')
3232
# Users may want multiple library paths, so store a list of paths.
33-
USER_LIBRARY_PATHS = [os.path.join('~', '.matplotlib', 'stylelib')]
33+
USER_LIBRARY_PATHS = [os.path.join(mpl._get_configdir(), 'stylelib')]
3434
STYLE_EXTENSION = 'mplstyle'
3535
STYLE_FILE_PATTERN = re.compile('([\S]+).%s$' % STYLE_EXTENSION)
3636

0 commit comments

Comments
 (0)