Skip to content
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

Fix mpl.cbook.matplotlib depreciation warning #39

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Also, as a summer loving person stuck in the Northern hemisphere, July is my fav
- **`v0.1.1`**: Fix relative image link in readme.
- **`v0.1.2`**: Remove unnecessary argument from rcmod to be compatible with matplotlib versions earlier than v3.4.x.
- **`v0.1.3`**: Fix week number labelling bug in `month_plot()` and `calendar_plot()`
- **`v0.1.4`**: Avoid error when trying to access `mpl.cbook.MatplotlibDeprecationWarning`

### TODO:
- Fix slight misalignment of plot and cbar when `date_grid` and `colorbar` are used in conjunction.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="july",
version="0.1.3",
version="0.1.4",
author="Edvard Hultén",
author_email="edvard.hulten@gmail.com",
description="A small library for creating pretty heatmaps of daily data.",
Expand Down
2 changes: 1 addition & 1 deletion src/july/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.1.3"
__version__ = "0.1.4"
__author__ = "Edvard Hultén"
__contact__ = "edvard.hulten@gmail.com"

Expand Down
2 changes: 1 addition & 1 deletion src/july/rcmod.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ def update_rcparams(
rcmod["figure.dpi"] = dpi
rcmod.update(rc_params_dict)
with warnings.catch_warnings():
warnings.simplefilter("ignore", mpl.cbook.MatplotlibDeprecationWarning)
warnings.simplefilter("ignore", mpl.MatplotlibDeprecationWarning)
mpl.rcParams.update(rcmod)