acroucher / PyTOUGH

A Python library for automating TOUGH2 simulations of subsurface fluid and heat flow
GNU Lesser General Public License v3.0
96 stars 36 forks source link

Plotting contours using slice_plot function not working #32

Closed quenchlemon closed 2 years ago

quenchlemon commented 2 years ago

Hi acroucher,

I have an issue plotting contours using the slice_plot function and am wondering whether it is due to an incompatibility of the packages? The error I am getting can be found in the image below:

Code_El7HUYnaGY

Packages used Python 3.7.12, Numpy 1.21.4 Matplotlib 3.5.0 Scipy 1.7.3 and the latest version of PyTOUGH.

acroucher commented 2 years ago

hi Jonathan, yes there were some changes in Matplotlib 3.1 which were not backwards compatible. The next release of PyTOUGH will be updated to reflect these changes. Meanwhile if you run the 'testing' branch of PyTOUGH (rather than 'master') it should work ok.

quenchlemon commented 2 years ago

Ok great. I can confirm that the PyTOUGH-testing version works with the above mentioned packages.

Thanks!