Skip to content

Commit 87d8b87

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

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/cycler.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"#898989",
2222
"#A2C8EC",
2323
"#FFBC79",
24-
"#CFCFCF"
24+
"#CFCFCF",
2525
]
2626

2727
color_cycles = {
@@ -63,5 +63,5 @@ def show_greyscale(file):
6363
fig, ax = plt.subplots()
6464
ax.axes.get_xaxis().set_visible(False)
6565
ax.axes.get_yaxis().set_visible(False)
66-
ax.imshow(np.asarray(image), cmap='gray', vmin=0, vmax=255) # noqa
66+
ax.imshow(np.asarray(image), cmap="gray", vmin=0, vmax=255) # noqa
6767
return fig, ax

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)