Deprecation warnings with Matplotlib 2.0.x
See original GitHub issueWhen run with Matplotlib 2.0.2 (Python 3.6.2) I get the following deprecation warnings:
/.../venv/lib/python3.6/site-packages/calmap/__init__.py:128: FutureWarning: how in .resample() is deprecated
the new syntax is .resample(...).sum()
by_day = data.resample('D', how=how)
/.../venv/lib/python3.6/site-packages/calmap/__init__.py:146: MatplotlibDeprecationWarning: The get_axis_bgcolor function was deprecated in version 2.0. Use get_facecolor instead.
linecolor = ax.get_axis_bgcolor()
Just a heads up for future proofing.
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Developers - Deprecation warnings with Matplotlib 2.0.x -
When run with Matplotlib 2.0.2 (Python 3.6.2) I get the following deprecation warnings: /.../venv/lib/python3.6/site-packages/calmap/__init__.py:128: ...
Read more >deprecation warning with matplotlib-2.0.0.b4 and bokeh 0.12.2
Hi, I get a deprecation warning experiment this code on Bokeh 0.12.2 with Matplotlib 2.0.0b4: import matplotlib.pyplot as plt import numpy ...
Read more >Python/matplotlib : getting rid of matplotlib.mpl warning
MatplotlibDeprecationWarning : mplDeprecation was deprecated in Matplotlib 3.6 and will be removed two minor releases later ... use this instead: import warnings ......
Read more >API Changes — Matplotlib 2.0.2 documentation
As of Matplotlib 2.0.0, using the old names raises a deprecation warning. In the future, using the old names will raise an error....
Read more >warnings — Warning control — Python 3.11.1 documentation
DeprecationWarning. Base category for warnings about deprecated features when those warnings are intended for other Python developers (ignored by default, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
as of matplotlib 2.2.2 get_axis_bgcolor() has been removed and calmap no longer works
Thank you for creating the issue. Unfortunately I don’t have the time to maintain this project. As per @MarvinT 's comment, please see https://github.com/MarvinT/calmap/ instead.