Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v6.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
Expand All @@ -13,7 +13,7 @@ repos:
- id: check-toml

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
rev: v0.15.15
hooks:
# Run the linter.
- id: ruff
Expand Down
2 changes: 1 addition & 1 deletion examples/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import os.path
import numpy as np
import matplotlib.pyplot as plt
from mplstyles import get_mplstyles, init_mplstyles
from mplstyles import init_mplstyles

init_mplstyles()

Expand Down
4 changes: 2 additions & 2 deletions mplstyles/cycler.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"#898989",
"#A2C8EC",
"#FFBC79",
"#CFCFCF"
"#CFCFCF",
]

color_cycles = {
Expand Down Expand Up @@ -63,5 +63,5 @@ def show_greyscale(file):
fig, ax = plt.subplots()
ax.axes.get_xaxis().set_visible(False)
ax.axes.get_yaxis().set_visible(False)
ax.imshow(np.asarray(image), cmap='gray', vmin=0, vmax=255) # noqa
ax.imshow(np.asarray(image), cmap="gray", vmin=0, vmax=255) # noqa
return fig, ax
2 changes: 1 addition & 1 deletion mplstyles/styles/journals/aps.mplstyle
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ grid.linestyle: : # dashed
# savefig.pad_inches : 0.01 # Use virtually all space when we specify figure dimensions

# LaTeX packages
text.latex.preamble : \usepackage{amsmath} \usepackage{amssymb} \usepackage{sfmath}
text.latex.preamble : \usepackage{amsmath} \usepackage{amssymb} \usepackage{sfmath}
2 changes: 1 addition & 1 deletion mplstyles/styles/journals/aps1.5.mplstyle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
figure.figsize: 5.063, 2.531 # figure size in inches (ratio=1.333)
figure.figsize: 5.063, 2.531 # figure size in inches (ratio=1.333)
2 changes: 1 addition & 1 deletion mplstyles/styles/journals/aps2.mplstyle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
figure.figsize: 6.75, 2.531 # figure size in inches (ratio=1.333)
figure.figsize: 6.75, 2.531 # figure size in inches (ratio=1.333)