azogue / psychrochart

A Python 3 library to make psychrometric charts and overlay information on them.
MIT License
104 stars 27 forks source link

fixing chart setup error with gca() call for recent Matplotlib versions #25

Closed simplynail closed 1 year ago

simplynail commented 1 year ago

Since adding parameters directly to Figure.gca() function was deprecated in Matplotlib 3.4, I made a fix that seems to solve the issue for newer versions of Matplotlib.

solution based on this thread: https://stackoverflow.com/questions/67095247/gca-and-latest-version-of-matplotlib

azogue commented 1 year ago

Hey @simplynail, thank you very much for the bug discovery + the fix!

Sorry I didn't see until now... I'll try to make a little refresh of the library soon, to work with newer versions of python and matplotlib 🍻