module 'matplotlib.cbook' has no attribute 'MatplotlibDeprecationWarning'
Hi all,
I'm gettting a Matplot depreciation warning when running the following (note I'm running this within a streamlit application, not sure if this may have an influence)
# Show calendar
dates = date_range("2020-01-01", "2020-12-31")
data = np.random.randint(0, 100, len(dates))
## Create a figure with a single axes
fig, ax = plt.subplots()
## Tell july to make a plot in a specific axes
july.month_plot(dates, data, month=2, date_label=True, ax=ax, colorbar=True)
pip list gives the following
pip list
Package Version
------------------------- -----------
altair 5.3.0
anyio 4.4.0
attrs 23.2.0
blinker 1.8.2
cachetools 5.3.3
certifi 2024.7.4
charset-normalizer 3.3.2
click 8.1.7
contourpy 1.2.1
cycler 0.12.1
fonttools 4.53.1
gitdb 4.0.11
GitPython 3.1.43
greenlet 3.0.3
h11 0.14.0
httpcore 1.0.5
httpx 0.27.0
idna 3.7
Jinja2 3.1.4
jsonschema 4.23.0
jsonschema-specifications 2023.12.1
july 0.1.3
kiwisolver 1.4.5
markdown-it-py 3.0.0
MarkupSafe 2.1.5
matplotlib 3.9.1
mdurl 0.1.2
numpy 2.0.0
packaging 24.1
pandas 2.2.2
pillow 10.4.0
pip 24.1.2
protobuf 5.27.2
psycopg2-binary 2.9.9
pyarrow 16.1.0
pydeck 0.9.1
Pygments 2.18.0
pyparsing 3.1.2
python-dateutil 2.9.0.post0
python-dotenv 1.0.1
pytz 2024.1
referencing 0.35.1
requests 2.32.3
rich 13.7.1
rpds-py 0.19.0
setuptools 70.3.0
six 1.16.0
smmap 5.0.1
sniffio 1.3.1
SQLAlchemy 2.0.31
streamlit 1.36.0
tenacity 8.5.0
toml 0.10.2
toolz 0.12.1
tornado 6.4.1
typing_extensions 4.12.2
tzdata 2024.1
urllib3 2.2.2
watchdog 4.0.1
wheel 0.43.0
Any tips what the issue may be? Looking forward to your ideas, and thanks in advance!
I tried and verified that this branch by @thoellrich solves the issue, and allows using the latest version of matplotlib with july. For those with this issues,please check out the branch by thoellrich, and @e-hulten please merge the pull request :)
@e-hulten , can you merge the pull request, please!
ran into this issue as well. would greatly appreciate it if the PR was merged.
The issue still persists, would be great if merged.
Please merge PR so the package can be used from pypi @e-hulten