diff --git a/.github/workflows/niceplots.yml b/.github/workflows/niceplots.yml index 8ce1784..083ae68 100644 --- a/.github/workflows/niceplots.yml +++ b/.github/workflows/niceplots.yml @@ -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 }} @@ -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: | diff --git a/examples/plot_style_demo.py b/examples/plot_style_demo.py index d412e00..c26e3c1 100644 --- a/examples/plot_style_demo.py +++ b/examples/plot_style_demo.py @@ -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]) diff --git a/examples/ref/default_style_demo.png b/examples/ref/default_style_demo.png index c9dd9f6..2356f6e 100644 Binary files a/examples/ref/default_style_demo.png and b/examples/ref/default_style_demo.png differ diff --git a/examples/ref/doumont-dark_style_demo.png b/examples/ref/doumont-dark_style_demo.png index 4704268..58d81d9 100644 Binary files a/examples/ref/doumont-dark_style_demo.png and b/examples/ref/doumont-dark_style_demo.png differ diff --git a/examples/ref/doumont-light_style_demo.png b/examples/ref/doumont-light_style_demo.png index ab86bba..f1339a6 100644 Binary files a/examples/ref/doumont-light_style_demo.png and b/examples/ref/doumont-light_style_demo.png differ diff --git a/examples/ref/james-dark_style_demo.png b/examples/ref/james-dark_style_demo.png index fc59af6..1537c01 100644 Binary files a/examples/ref/james-dark_style_demo.png and b/examples/ref/james-dark_style_demo.png differ diff --git a/examples/ref/james-light_style_demo.png b/examples/ref/james-light_style_demo.png index d2a822c..b500d41 100644 Binary files a/examples/ref/james-light_style_demo.png and b/examples/ref/james-light_style_demo.png differ