### Install in Conda Env (Mamba/Pip Bash) Source: https://github.com/mpytools/mplotutils/blob/main/docs/installation.md Installs required dependencies (cartopy, xarray) into a conda environment using mamba, followed by installing mplotutils using pip, as it's not available on conda-forge. ```bash mamba install -c conda-forge cartopy xarray python -m pip install mplotutils ``` -------------------------------- ### Install Development Version (Pip Git Bash) Source: https://github.com/mpytools/mplotutils/blob/main/docs/installation.md Installs the latest development version of the mplotutils library directly from its GitHub repository using pip, suitable for testing or contributing. ```bash pip install git+https://github.com/mpytools/mplotutils ``` -------------------------------- ### Install Latest Release with Pip (Bash) Source: https://github.com/mpytools/mplotutils/blob/main/docs/installation.md Installs the latest stable version of the mplotutils library from PyPI using the standard pip package manager command. ```bash python -m pip install mplotutils ``` -------------------------------- ### Updating mpu.colorbar call with multiple axes (array) Source: https://github.com/mpytools/mplotutils/blob/main/CHANGELOG.md Illustrates another way to update the `mpu.colorbar` call in v0.5.0, showing how to pass an entire array or list of axes directly to the new single `ax` argument, replacing the old `ax1` and `ax2` arguments. ```python mpu.colorbar(h, axs[0], axs[1]) ``` ```python mpu.colorbar(h, axs) ``` -------------------------------- ### Updating mpu.colorbar call with multiple axes (list) Source: https://github.com/mpytools/mplotutils/blob/main/CHANGELOG.md Demonstrates the breaking change in v0.5.0 where the `ax1` and `ax2` arguments for `mpu.colorbar` were replaced by a single `ax` argument that accepts a list of axes. This change aligns the API with matplotlib's `plt.colorbar`. ```python mpu.colorbar(h, axs[0], axs[1]) ``` ```python mpu.colorbar(h, [axs[0], axs[1]]) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.