File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,15 @@ Defining your own style
25
25
=======================
26
26
27
27
You can create custom styles and use them by calling ``style.use `` with the
28
- path or URL to the style sheet. Alternatively, if you add your
29
- `` <style-name>.mplstyle `` file to ``~/.matplotlib/ stylelib `` ( you may need to
30
- create this directory), you can reuse your custom style sheet with a call to
31
- `` style.use(<style-name> ) ``. Note that a custom style sheet in
32
- `` ~/.matplotlib/stylelib `` will override a style sheet defined by matplotlib if
33
- the styles have the same name.
28
+ path or URL to the style sheet. Alternatively, if you add your `` <style-name>.mplstyle ``
29
+ file to ``mpl_configdir/ stylelib`, you can reuse your custom style sheet with a call to
30
+ ``style.use(<style-name>) ``. By default `` mpl_configdir `` should be `` ~/.config/matplotlib ``,
31
+ but you can check where yours is with `` matplotlib.get_configdir( ) ``, you may need to
32
+ create this directory. Note that a custom style sheet in `` mpl_configdir/stylelib ``
33
+ will override a style sheet defined by matplotlib if the styles have the same name.
34
34
35
35
For example, you might want to create
36
- ``~/.matplotlib /stylelib/presentation.mplstyle `` with the following::
36
+ ``mpl_configdir /stylelib/presentation.mplstyle `` with the following::
37
37
38
38
axes.titlesize : 24
39
39
axes.labelsize : 20
You can’t perform that action at this time.
0 commit comments