Skip to content

Commit

Permalink
Merge pull request matplotlib#4039 from Pybonacci/fix-stylesheets-docs
Browse files Browse the repository at this point in the history
DOC : better reflect where config folder is in style docs

added some fixes in order to use the result obtained from `mpl._get_configdir()`
  • Loading branch information
tacaswell committed Feb 2, 2015
2 parents faa9ec1 + de9ac1d commit 9ae654f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions doc/users/style_sheets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ Defining your own style
=======================

You can create custom styles and use them by calling ``style.use`` with the
path or URL to the style sheet. Alternatively, if you add your
``<style-name>.mplstyle`` file to ``~/.matplotlib/stylelib`` (you may need to
create this directory), you can reuse your custom style sheet with a call to
``style.use(<style-name>)``. Note that a custom style sheet in
``~/.matplotlib/stylelib`` will override a style sheet defined by matplotlib if
the styles have the same name.
path or URL to the style sheet. Alternatively, if you add your ``<style-name>.mplstyle``
file to ``mpl_configdir/stylelib`, you can reuse your custom style sheet with a call to
``style.use(<style-name>)``. By default ``mpl_configdir`` should be ``~/.config/matplotlib``,
but you can check where yours is with ``matplotlib.get_configdir()``, you may need to
create this directory. Note that a custom style sheet in ``mpl_configdir/stylelib``
will override a style sheet defined by matplotlib if the styles have the same name.

For example, you might want to create
``~/.matplotlib/stylelib/presentation.mplstyle`` with the following::
``mpl_configdir/stylelib/presentation.mplstyle`` with the following::

axes.titlesize : 24
axes.labelsize : 20
Expand Down

0 comments on commit 9ae654f

Please sign in to comment.