diff --git a/CHANGELOG.md b/CHANGELOG.md index bfea00e..d0fca10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,8 @@ ### Breaking changes -- Removed support for python 3.9 ([#130](https://github.com/mathause/mplotutils/pull/130)). -- The minimum versions of some dependencies were changed ([#132](https://github.com/mathause/mplotutils/pull/132)). +- Removed support for python 3.9 ([#130](https://github.com/mpytools/mplotutils/pull/130)). +- The minimum versions of some dependencies were changed ([#132](https://github.com/mpytools/mplotutils/pull/132)). | Package | Old | New | | ----------- | ------ | ------- | @@ -17,7 +17,7 @@ - The modules ``cartopy_utils``, ``colormaps``, ``map_layout``, ``mpl``, and ``xrcompat`` were renamed (added a leading underscore) to indicate that they are private - ([#141](https://github.com/mathause/mplotutils/pull/141) and [#142](https://github.com/mathause/mplotutils/pull/142)). + ([#141](https://github.com/mpytools/mplotutils/pull/141) and [#142](https://github.com/mpytools/mplotutils/pull/142)). ### Enhancements @@ -28,22 +28,22 @@ 3. `mpu.hatch_map_global`: as 2. but also adds a cyclic point to the array all three functions expect a 2D boolean `xr.DataArray` and a hatch pattern. Values that are `True` are hatched - ([#123](https://github.com/mathause/mplotutils/pull/123) and [#143](https://github.com/mathause/mplotutils/pull/143)). + ([#123](https://github.com/mpytools/mplotutils/pull/123) and [#143](https://github.com/mpytools/mplotutils/pull/143)). -- Enable passing `AxesGrid` (from `mpl_toolkits.axes_grid1`) to `set_map_layout` ([#116](https://github.com/mathause/mplotutils/pull/116)). -- Raise more informative error when a wrong type is passed to `set_map_layout` ([#121](https://github.com/mathause/mplotutils/pull/121)). -- `set_map_layout` now raises an explicit error when the figure contains SubFigure ([#121](https://github.com/mathause/mplotutils/pull/121)). -- Test upstream dependencies and fix compatibility with the upcoming pandas v3 ([#133](https://github.com/mathause/mplotutils/pull/133)). +- Enable passing `AxesGrid` (from `mpl_toolkits.axes_grid1`) to `set_map_layout` ([#116](https://github.com/mpytools/mplotutils/pull/116)). +- Raise more informative error when a wrong type is passed to `set_map_layout` ([#121](https://github.com/mpytools/mplotutils/pull/121)). +- `set_map_layout` now raises an explicit error when the figure contains SubFigure ([#121](https://github.com/mpytools/mplotutils/pull/121)). +- Test upstream dependencies and fix compatibility with the upcoming pandas v3 ([#133](https://github.com/mpytools/mplotutils/pull/133)). ### Bug fixes -- Ensure the current axes (`plt.gca()`) is not changed by calling `mpu.colorbar(...)` ([#136](https://github.com/mathause/mplotutils/pull/136)). +- Ensure the current axes (`plt.gca()`) is not changed by calling `mpu.colorbar(...)` ([#136](https://github.com/mpytools/mplotutils/pull/136)). ### Internal changes - Align internal usage of `ListedColormaps` with changes in [matplotlib/matplotlib#29135](https://github.com/matplotlib/matplotlib/pull/29135) - ([#145](https://github.com/mathause/mplotutils/pull/145), and [#147](https://github.com/mathause/mplotutils/pull/147)). + ([#145](https://github.com/mpytools/mplotutils/pull/145), and [#147](https://github.com/mpytools/mplotutils/pull/147)). ## v0.5.0 (27.03.2024) @@ -51,7 +51,7 @@ Version v0.5.0 aligns passing multiple axes to `colorbar` with matplotlib. ### Breaking changes -- The `ax1` and `ax2` arguments of `mpu.colorbar` have been combined into `ax` ([#107](https://github.com/mathause/mplotutils/pull/107)) +- The `ax1` and `ax2` arguments of `mpu.colorbar` have been combined into `ax` ([#107](https://github.com/mpytools/mplotutils/pull/107)) To update ```diff @@ -63,8 +63,8 @@ Version v0.5.0 aligns passing multiple axes to `colorbar` with matplotlib. - mpu.colorbar(h, axs[0], axs[1]) + mpu.colorbar(h, axs) ``` -- When passing `size` to `mpu.colorbar` it now uses the height/ width of _all_ passed axes to scale the colorbar. This is consistent with `plt.colorbar` but may lead to differences compared to the previous version ([#107](https://github.com/mathause/mplotutils/pull/107)). -- Similarly for `pad`, which is also scaled by the height/ width of _all_ passed axes. This is consistent with `plt.colorbar` but may change the padding of the colorbar compared to the previous version ([#107](https://github.com/mathause/mplotutils/pull/107)). +- When passing `size` to `mpu.colorbar` it now uses the height/ width of _all_ passed axes to scale the colorbar. This is consistent with `plt.colorbar` but may lead to differences compared to the previous version ([#107](https://github.com/mpytools/mplotutils/pull/107)). +- Similarly for `pad`, which is also scaled by the height/ width of _all_ passed axes. This is consistent with `plt.colorbar` but may change the padding of the colorbar compared to the previous version ([#107](https://github.com/mpytools/mplotutils/pull/107)). ## v0.4.0 (23.02.2024) @@ -74,8 +74,8 @@ bumps the supported versions. ### Breaking changes -- Removed support for python 3.7 and python 3.8 ([#88](https://github.com/mathause/mplotutils/pull/88)). -- The minimum versions of some dependencies were changed ([#88](https://github.com/mathause/mplotutils/pull/88), [#91](https://github.com/mathause/mplotutils/pull/91), and [#96](https://github.com/mathause/mplotutils/pull/96)). +- Removed support for python 3.7 and python 3.8 ([#88](https://github.com/mpytools/mplotutils/pull/88)). +- The minimum versions of some dependencies were changed ([#88](https://github.com/mpytools/mplotutils/pull/88), [#91](https://github.com/mpytools/mplotutils/pull/91), and [#96](https://github.com/mpytools/mplotutils/pull/96)). | Package | Old | New | | ------------ | ----- | ----- | @@ -87,13 +87,13 @@ bumps the supported versions. - `sample_data_map` now offsets the lon data such that the first grid cell does not wrap - around ([#87](https://github.com/mathause/mplotutils/pull/87)). + around ([#87](https://github.com/mpytools/mplotutils/pull/87)). ### Enhancements - Calling `f.canvas.draw()` before `plt.savefig` is no longer necessary. This now happens - automatically ([#98](https://github.com/mathause/mplotutils/pull/98)). -- Add python 3.12 to list of supported versions ([#89](https://github.com/mathause/mplotutils/pull/89)). + automatically ([#98](https://github.com/mpytools/mplotutils/pull/98)). +- Add python 3.12 to list of supported versions ([#89](https://github.com/mpytools/mplotutils/pull/89)). ## v0.3.1 (09.02.2023) @@ -102,10 +102,10 @@ Version v0.3.1 fixes a regression and an additional bug from v0.3.0. It's recomm ### Bug fixes - Fixed a bug in `set_map_layout`: the data ratio of a cartopy `GeoAxesSubplot` requires - a `draw` to be correct ([#61](https://github.com/mathause/mplotutils/pull/61)). -- Fix a regression introduced in [#33](https://github.com/mathause/mplotutils/pull/33): + a `draw` to be correct ([#61](https://github.com/mpytools/mplotutils/pull/61)). +- Fix a regression introduced in [#33](https://github.com/mpytools/mplotutils/pull/33): `cyclic_dataarray` now correctly extrapolates the coordinates - ([#58](https://github.com/mathause/mplotutils/pull/58)). + ([#58](https://github.com/mpytools/mplotutils/pull/58)). ## v0.3.0 (15.01.2023) @@ -113,36 +113,36 @@ Version v0.3.1 fixes a regression and an additional bug from v0.3.0. It's recomm Version 0.3.0 includes some long-overdue bug fixes, modernization of the code, much better test coverage and some enhancements. -mplotutils now uses the MIT license instead of GPL-3.0 ([#51](https://github.com/mathause/mplotutils/pull/51)) +mplotutils now uses the MIT license instead of GPL-3.0 ([#51](https://github.com/mpytools/mplotutils/pull/51)) ### Deprecations * Deprecated `mpu.infer_interval_breaks` as this is no longer necessary with matplotlib v3.2 - and cartopy v0.21 ([#32](https://github.com/mathause/mplotutils/pull/32)). + and cartopy v0.21 ([#32](https://github.com/mpytools/mplotutils/pull/32)). * Deprecated a number of positional arguments, these are now keyword only, e.g. in - `mpu.colorbar` ([#54](https://github.com/mathause/mplotutils/pull/54)). + `mpu.colorbar` ([#54](https://github.com/mpytools/mplotutils/pull/54)). ### Enhancements * Added ``nrow`` and ``ncol`` parameters to ``set_map_layout`` for use with a gridspec. * Allow passing list of axes to ``set_map_layout``, renamed the files and extended - the test coverage ([#42](https://github.com/mathause/mplotutils/pull/42) - and [#43](https://github.com/mathause/mplotutils/pull/43)). - * Add function to create `xr.DataArray` sample data ([#53](https://github.com/mathause/mplotutils/pull/53)). + the test coverage ([#42](https://github.com/mpytools/mplotutils/pull/42) + and [#43](https://github.com/mpytools/mplotutils/pull/43)). + * Add function to create `xr.DataArray` sample data ([#53](https://github.com/mpytools/mplotutils/pull/53)). ### Bug fixes * Fixed compatibility of `mpu.colorbar` with `bbox_inches="tight"` for matplotlib 3.4 and - newer and refactor and extend tests ([#26](https://github.com/mathause/mplotutils/pull/26) - and [#40](https://github.com/mathause/mplotutils/pull/40)). + newer and refactor and extend tests ([#26](https://github.com/mpytools/mplotutils/pull/26) + and [#40](https://github.com/mpytools/mplotutils/pull/40)). ### Internal changes * Replaced `ax.get_geometry()` with `ax.get_subplotspec().get_geometry()` - as the former was deprecated in matplotlib ([#8](https://github.com/mathause/mplotutils/pull/8)). - * Refactor `mpu.cyclic_dataarray` using `obj.pad` ([#33](https://github.com/mathause/mplotutils/pull/33)). - * Enabled CI on github actions ([#9](https://github.com/mathause/mplotutils/pull/9)). + as the former was deprecated in matplotlib ([#8](https://github.com/mpytools/mplotutils/pull/8)). + * Refactor `mpu.cyclic_dataarray` using `obj.pad` ([#33](https://github.com/mpytools/mplotutils/pull/33)). + * Enabled CI on github actions ([#9](https://github.com/mpytools/mplotutils/pull/9)). * Formatted with black and isort, checked with flake8. ## v0.2.0 (01.06.2018) @@ -151,7 +151,7 @@ Mayor release, mostly introducing the new `colorbar` functionality. * add `_color_palette` that selects colors from the whole range of the colormap. Previously we used the `seaborn` logic that excludes colors at the edge of the colorbar - ([#1](https://github.com/mathause/mplotutils/issues/1)). + ([#1](https://github.com/mpytools/mplotutils/issues/1)). * the colorbar functionality was entirely redesigned: * new top-level function `mpu.colorbar` * added `aspect` keyword which defines the ratio of long to short side diff --git a/docs/installation.md b/docs/installation.md index 2b74c9e..aa037b1 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -26,9 +26,9 @@ mplotutils is not available from pypi or conda-forge, therefore it needs to be i ### Install development version ```bash -pip install git+https://github.com/mathause/mplotutils +pip install git+https://github.com/mpytools/mplotutils ``` ### Install latest released version -Go to the [newest release on github](https://github.com/mathause/mplotutils/releases/latest), copy the URL of the `*.tar.gz` source file at the bottom and then use pip to install it (i.e. `pip install ...`). +Go to the [newest release on github](https://github.com/mpytools/mplotutils/releases/latest), copy the URL of the `*.tar.gz` source file at the bottom and then use pip to install it (i.e. `pip install ...`). diff --git a/mplotutils/tests/test_mapticklabels.py b/mplotutils/tests/test_mapticklabels.py index 2727c36..4eb4b74 100644 --- a/mplotutils/tests/test_mapticklabels.py +++ b/mplotutils/tests/test_mapticklabels.py @@ -67,7 +67,7 @@ def test_xticklabels_robinson(): assert ax.texts[-1].get_text() == "120°E" -# TODO: https://github.com/mathause/mplotutils/issues/48 +# TODO: https://github.com/mpytools/mplotutils/issues/48 # def test_xticklabels_robinson_180(): # proj = ccrs.Robinson(central_longitude=180) diff --git a/setup.cfg b/setup.cfg index 7e589b3..323ebba 100644 --- a/setup.cfg +++ b/setup.cfg @@ -4,7 +4,7 @@ description = utilities for matplotlib and cartopy author = mathause author_email = mathias.hauser@env.ethz.com license = GPLv3 -url = https://github.com/mathause/mplotutils +url = https://github.com/mpytools/mplotutils long_description_content_type=text/markdown long_description = file: README.md classifiers =