question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deprecation warnings with Matplotlib 2.0.x

See original GitHub issue

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: 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:closed
  • Created 6 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
MarvinTcommented, Mar 18, 2018

as of matplotlib 2.2.2 get_axis_bgcolor() has been removed and calmap no longer works

0reactions
martijnvermaatcommented, Jul 11, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found