aymeric-spiga / planetoplot

a cool python-based tool to plot stuff and explore data
https://github.com/aymeric-spiga/planetoplot/blob/master/README.md
GNU General Public License v2.0
10 stars 4 forks source link

Bugs with Matplotlib 2.0+ #10

Closed jvatantollone closed 6 years ago

jvatantollone commented 6 years ago

Some of the changes brought in matplotlib 2.0+ (https://matplotlib.org/api/api_changes.html) since last year, lead to crashes and incompatibility of planetoplot...

Especially "The axisbg and axis_bgcolor properties on Axes have been deprecated in favor of facecolor." is quite annoying ...

To be short, we cannot plot anything with latest versions of mpl as long as this one (at least) is not fixed ...

aymeric-spiga commented 6 years ago

Thanks @jvatantollone this is great because I made a couple commits recently trying to make planetoplot compatible with latest versions, but I overlooked this axisbg problem. I removed this option. Are there other problems?

jvatantollone commented 6 years ago

Great it works again now ! Will let you know here if others appear.

aymeric-spiga commented 6 years ago

It works again but there is a problem still with basemap. A bit more difficult to fix, I have to look

aymeric-spiga commented 6 years ago

There is a problem with basemap, it must be updated via conda-forge It works with this setting

conda create -n planetoplot python=2.7
source activate planetoplot
conda install numpy matplotlib netcdf4
conda install -c conda-forge basemap
aymeric-spiga commented 6 years ago

The version of basemap in conda does not work:

AttributeError: 'AxesSubplot' object has no attribute 'get_axis_bgcolor'

So the version of basemap must be installed with conda-forge to have the latest version where the problem is fixed