Skip to content
Merged
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
10 changes: 5 additions & 5 deletions .github/workflows/niceplots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix: # Test 3 versions of python, and the latest and oldest supported versions of numpy and matplotlib, according to https://scientific-python.org/specs/spec-0000/
python-version: ["3.9", "3.10", "3.11"]
numpy-version: ["1.23.*", "1.26.*"]
mpl-version: ["3.6.*", "3.8.*"]
python-version: ["3.10", "3.11", "3.12"]
numpy-version: ["<2", ">=2.2"]
mpl-version: ["==3.8.*", "==3.10.*"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -40,8 +40,8 @@ jobs:
- name: Install python dependencies
run: |
pip install --upgrade pip wheel
pip install numpy==${{ matrix.numpy-version }}
pip install matplotlib==${{ matrix.mpl-version }}
pip install "numpy${{ matrix.numpy-version }}"
pip install "matplotlib${{ matrix.mpl-version }}"
pip install .
- name: Test examples
run: |
Expand Down
2 changes: 1 addition & 1 deletion examples/plot_style_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def gaussian(x, mu, sig):
if formatting != "default":
colours = niceplots.get_colors()

fig, ax = plt.subplots()
fig, ax = plt.subplots(figsize=(7, 5))

# Plotting tip #1, only add axis ticks at important values
ax.set_yticks([0, 0.4])
Expand Down
Binary file modified examples/ref/default_style_demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/ref/doumont-dark_style_demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/ref/doumont-light_style_demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/ref/james-dark_style_demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/ref/james-light_style_demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.