Skip to content

Commit fdd5268

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f076c2a commit fdd5268

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ style sheets take precedence over ``matplotlibrc`` files.
2323
This project uses the third option and is intended as a collection of usefull
2424
matplotlibrc style files for scientific plotting.
2525

26-
Please feel free to add your own favourite styles to the libary! Start from the empty
26+
Please feel free to add your own favourite styles to the libary! Start from the empty
2727
template file ``default.mplstyle`` and change the parameters you like.
28-
If you are happy with the style, add the file to the ``mplstyles`` package and open
29-
a pull request.
28+
If you are happy with the style, add the file to the ``mplstyles`` package and open
29+
a pull request.
3030

3131

3232
> **Note**: If you are using PyCharm to edit the ``*.mplstyle`` files, right-click on the file
@@ -51,7 +51,7 @@ with mplstyle_context("figure"):
5151
...
5252
````
5353

54-
Alternatively, the included styles can be registered and used via the normal
54+
Alternatively, the included styles can be registered and used via the normal
5555
``plt.style`` method:
5656
````python
5757
from mplstyles import init_mplstyles
@@ -81,23 +81,23 @@ The rc-files are contained in the ``.../mplstyles/styles/`` directory.
8181

8282
## Primary styles
8383

84-
The main styles are ``plot`` and ``figure``. The ``plot`` style is intended for plotting
84+
The main styles are ``plot`` and ``figure``. The ``plot`` style is intended for plotting
8585
results while working, preparing or creating a pre-print. The ``figure`` style should be
86-
used for generating the final figures for publications.
86+
used for generating the final figures for publications.
8787

8888

8989
## Journal styles
9090

9191
The journal styles are *additive* and should be used with the primary styles.
92-
They define the format specifications for each jornal. The style for a single
92+
They define the format specifications for each jornal. The style for a single
9393
column figure for the APS fournal, for example, can be used as follows:
9494
````python
9595
from mplstyles import use_mplstyle
9696

9797
use_mplstyle("figure", "aps")
9898
...
9999
````
100-
You also can mix in the figure size of 1.5- or double-column figures via the context
100+
You also can mix in the figure size of 1.5- or double-column figures via the context
101101
manager:
102102
````python
103103
from mplstyles import use_mplstyle, mplstyle_context

mplstyles/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
def get_mplstyles():
2020
ext = ".mplstyle"
21-
styles_dir = pkg_resources.resource_filename('mplstyles', "styles")
21+
styles_dir = pkg_resources.resource_filename("mplstyles", "styles")
2222
styles = list()
2323
for root, _, files in os.walk(styles_dir):
2424
for filename in files:
@@ -45,7 +45,7 @@ def register_styles(styles_root_dir):
4545

4646

4747
def init_mplstyles():
48-
register_styles(pkg_resources.resource_filename('mplstyles', "styles"))
48+
register_styles(pkg_resources.resource_filename("mplstyles", "styles"))
4949

5050

5151
def use_mplstyle(*name):

mplstyles/styles/journals/aps.mplstyle

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ grid.linestyle: : # dashed
3636
# savefig.pad_inches : 0.01 # Use virtually all space when we specify figure dimensions
3737

3838
# LaTeX packages
39-
text.latex.preamble : \usepackage{amsmath} \usepackage{amssymb} \usepackage{sfmath}
39+
text.latex.preamble : \usepackage{amsmath} \usepackage{amssymb} \usepackage{sfmath}
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
figure.figsize: 5.063, 2.531 # figure size in inches (ratio=1.333)
1+
figure.figsize: 5.063, 2.531 # figure size in inches (ratio=1.333)
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
figure.figsize: 6.75, 2.531 # figure size in inches (ratio=1.333)
1+
figure.figsize: 6.75, 2.531 # figure size in inches (ratio=1.333)

0 commit comments

Comments
 (0)