Skip to content

Compatibility with mpl v3.9.2 (latest) #459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 95 commits into from
Closed
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
ea73b3a
Made fontconfig parser compatible with 3.8.3
cvanelteren Mar 2, 2024
36b8150
Make axes/base.py compatible with mpl: 3.8.3
cvanelteren Mar 2, 2024
62cf31a
Black + compatibility fixes
cvanelteren Mar 2, 2024
53edcc1
Initialize mpl pytests
cvanelteren Mar 2, 2024
6d7ae73
Expaned unittest
cvanelteren Mar 3, 2024
eba0aa3
Fix bug in 3.8.3 where axes are joined rather join
cvanelteren Mar 5, 2024
6e7f1d7
Initialize mpl pytests
cvanelteren Mar 2, 2024
2e32de1
Expaned unittest
cvanelteren Mar 3, 2024
17e1283
Added micromamba environment for reproducible builds
cvanelteren Jul 24, 2024
60ec01b
Added pandas to env
cvanelteren Jul 24, 2024
9d1f659
Added a variety of tests
cvanelteren Jul 24, 2024
f235e30
Freezing baseline
cvanelteren Jul 24, 2024
7c815bf
Added Luke's tests
cvanelteren Jul 24, 2024
1f06f10
Add tests and ci instructions [Luke's tests]
lukelbd Mar 26, 2023
549052a
Merge remote-tracking branch 'origin/unittest' into HEAD
cvanelteren Jul 24, 2024
034ed7e
Merge remote-tracking branch 'origin/unittest' into mpl3.9.1
cvanelteren Jul 25, 2024
f620d61
Fixed issue where prop_keys are missing
cvanelteren Jul 25, 2024
5d0c92f
Removed global function and properly wrap cmap if neccessary
cvanelteren Jul 25, 2024
76818d7
Updated mpl version
cvanelteren Jul 25, 2024
30d9551
Ensure compatibility with mpl3.91
cvanelteren Jul 25, 2024
1f3e4ed
Remove conflicting yml file
cvanelteren Jul 26, 2024
51a8308
Added some comments and removed the uggly break statement
cvanelteren Jul 27, 2024
265037a
Added some comments and removed the uggly break statement
cvanelteren Jul 27, 2024
75378bc
Merge remote-tracking branch 'refs/remotes/origin/mpl3.9.1' into mpl3…
cvanelteren Jul 27, 2024
e93f2b5
Future proof contour axes to be compatible with future mpl releases
cvanelteren Jul 27, 2024
10c4f3e
Minor fixes
cvanelteren Jul 27, 2024
b0c78ac
Unified tests
cvanelteren Jul 28, 2024
41e1539
Unifying tests
cvanelteren Jul 28, 2024
28235a1
Merge remote-tracking branch 'refs/remotes/origin/mpl3.9.1' into mpl3…
cvanelteren Jul 28, 2024
5496503
fixed keyword not being delegated when getting an array as keyword
cvanelteren Jul 28, 2024
843a6ae
fixed boxplot hatches
cvanelteren Jul 28, 2024
f2a4eb3
Remove unnecessary import
cvanelteren Jul 28, 2024
73ca163
Improve readability
cvanelteren Jul 28, 2024
17dc73d
Use native mpl colormaps to register proplot cmaps
cvanelteren Jul 28, 2024
0c340ed
Add hatch to box plot
cvanelteren Jul 28, 2024
61495d9
Add hatch handling to violinplot
cvanelteren Jul 28, 2024
d09f66d
fix spelling error check in hatch retrieval for violinplots
cvanelteren Jul 28, 2024
2e96095
All 1d plots pass
cvanelteren Jul 28, 2024
da966b8
Modified test as it no longer produces error
cvanelteren Jul 28, 2024
541b05d
Removed in favor of existing more extensive test
cvanelteren Jul 28, 2024
e3f5247
2d plots pass now, but vcenter in pcolor is ignored
cvanelteren Jul 28, 2024
7798e2b
Removed some test as I am not sure what they do
cvanelteren Jul 28, 2024
b1206c2
Removed more tests that contain vcenter
cvanelteren Jul 28, 2024
265721c
Replaced warnings to pytest native
cvanelteren Jul 28, 2024
2f601dd
updated test
cvanelteren Jul 28, 2024
3c7e7b1
Added refwidth to figure
cvanelteren Jul 28, 2024
bf8b23f
restored compatibility with cartopy
Jul 30, 2024
081e009
German locale not available for me, setting to us for now
cvanelteren Jul 30, 2024
a72e6f1
All tests passing
cvanelteren Jul 30, 2024
450664e
Rename test to globe
cvanelteren Jul 30, 2024
5e15d93
Black formatting + finalizing tests
cvanelteren Jul 30, 2024
cac8f08
Bump in requirements
cvanelteren Aug 6, 2024
6ebb1c2
Update basemap
cvanelteren Aug 6, 2024
04ac583
Black on conf.py
cvanelteren Aug 6, 2024
0c32c54
Added access to axes test
cvanelteren Aug 6, 2024
ccb1086
Create a git workflow with dependencies for the docs
cvanelteren Aug 6, 2024
3ded6f6
Replaced number checking using built-in numbers module
cvanelteren Aug 6, 2024
188c5b9
Unified the numeric calls
cvanelteren Aug 6, 2024
5a7a855
Pythonic string checking added to colormapdatabase
cvanelteren Aug 6, 2024
2023c09
Replace mpl colormaps by ColormapDatabase
cvanelteren Aug 7, 2024
7365bf4
Replace registrating colorbases with the mpl new way
cvanelteren Aug 7, 2024
210a5b3
Writing some comments to explain the behavior
cvanelteren Aug 7, 2024
a0a782f
Re-register builtin matplotlib as proplot colormaps
cvanelteren Aug 7, 2024
7da6814
replaced odd error -- all tests pass
cvanelteren Aug 7, 2024
d57908d
Added fixme statement -- fine for now
cvanelteren Aug 7, 2024
952e293
added os in build as per sphinx docs
cvanelteren Aug 7, 2024
6eb2df1
Added build tools to readthedocs.yml
cvanelteren Aug 7, 2024
be1f9de
Update the build command
cvanelteren Aug 7, 2024
e41a6fd
Black formatting doc files
cvanelteren Aug 7, 2024
4ed8506
Remapped seaborn reference to be compliant with mpl
cvanelteren Aug 7, 2024
0174ecb
Removed non-compliant mpl call
cvanelteren Aug 7, 2024
f50d2ca
Fixed a bug that cmap are not properly registered when calling cmashe…
cvanelteren Aug 8, 2024
c6ee64f
Formatting
cvanelteren Aug 8, 2024
b312227
Set interpolation default to off
cvanelteren Aug 9, 2024
cd3d9da
Mpl does not allow for integer colors anymore
cvanelteren Aug 12, 2024
55a247e
Fixed build issue with read the docs
cvanelteren Aug 12, 2024
c8d2838
Fixed numpy version
cvanelteren Aug 12, 2024
ab67205
Added geographic test
cvanelteren Aug 14, 2024
cab8b46
Removed error since basemap can be installed
cvanelteren Aug 14, 2024
5399804
Lower python requirements
cvanelteren Aug 14, 2024
a04b5f7
Test build
cvanelteren Aug 14, 2024
06a5687
Finalize colormaps. API now completely matches how mpl does it
cvanelteren Aug 14, 2024
476bef6
Convert str paths to pathlib as per warning sphinx
cvanelteren Aug 14, 2024
c78a550
Black formatting
cvanelteren Aug 14, 2024
2c1b073
Removing setup.py/cfg in favor of streamlined pyproject.toml
cvanelteren Aug 14, 2024
cdfac30
Add pytest to the build jobs and updated dependency
cvanelteren Aug 16, 2024
b566b2d
Added local handling for readthedocs
cvanelteren Aug 16, 2024
acdb1b2
Fixed theme not building
cvanelteren Aug 17, 2024
5d81997
Restore idx for colors
cvanelteren Aug 17, 2024
ff2b4de
Fix numpy below 2.0 due to xarray
cvanelteren Aug 20, 2024
06b741a
Attempting to fix timout with autoapi
cvanelteren Aug 20, 2024
3dd31af
Add autoapi to req
cvanelteren Aug 20, 2024
f7524a2
Correct import on autoapi
cvanelteren Aug 20, 2024
4ecd614
fixed scatter color cycling
cvanelteren Sep 30, 2024
4f040c7
removed doctest show
cvanelteren Sep 30, 2024
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
36 changes: 36 additions & 0 deletions .github/workflows/proplot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and Test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
pytest
- name: Build documentation
run: |
pip install sphinx jupytext nbsphinx sphinx-copybutton sphinx-rtd-ligth-dark sphinx-automodapi
cd docs
make html
30 changes: 19 additions & 11 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
# .readthedocs.yml
# .readthedocs.yml
# Read the Docs configuration file
version: 2

# Sphinx config
sphinx:
builder: html
configuration: docs/conf.py

# Python config
build:
image: latest
python:
version: 3.6
system_packages: true
os: ubuntu-22.04
tools:
python: mambaforge-latest
jobs:
pre_build:
jobs:
pre_build:
- locale -a
- export LC_ALL=en_US.UTF-8
- export LANG=en_US.UTF-8
- pytest


conda:
environment: docs/environment.yml
environment: ./docs/environment.yml

sphinx:
configuration: ./docs/conf.py
builder: html
Binary file added baseline/test_colorbar.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 added baseline/test_inbounds_data.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 added baseline/test_standardized_input.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 added baseline/test_standardized_inputs_1d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 20 additions & 21 deletions ci/environment.yml
Original file line number Diff line number Diff line change
@@ -5,35 +5,34 @@ name: proplot-dev
channels:
- conda-forge
dependencies:
- python==3.8
- numpy
- python==3.11
- numpy>=1.26.0
- pandas
- xarray
- matplotlib==3.2.2
- cartopy==0.20.2
- matplotlib>=3.9.1
- cartopy
- ipykernel
- pandoc
- python-build
- setuptools
- setuptools==72.1.0
- setuptools_scm
- setuptools_scm_git_archive
- wheel
- pip
- flake8
- isort
- black
- doc8
- pytest
- pytest-sugar
- pyqt5
- docutils>=0.16
- sphinx>=3.0
- sphinx-copybutton
- sphinx-rtd-light-dark
- jinja2>=2.11.3
- markupsafe>=2.0.1
- nbsphinx>=0.8.1
- jupytext
- pip:
- ..
- flake8
- isort
- black
- doc8
- pytest
- pytest-sugar
- pyqt5
- docutils==0.16
- sphinx>=3.0
- sphinx-copybutton
- sphinx-rtd-light-dark
- jinja2==2.11.3
- markupsafe==2.0.1
- nbsphinx==0.8.1
- jupytext
- git+https://github.com/proplot-dev/sphinx-automodapi@proplot-mods
Loading