MTgeophysics / mtpy

Python toolbox for standard Magnetotelluric (MT) data analysis
GNU General Public License v3.0
145 stars 66 forks source link

Issue with cmap while trying to plot an iter file #125

Open kaushik67 opened 3 years ago

kaushik67 commented 3 years ago

Hello all,

I was trying to plot MT resistivity model from an inverted iter file. The following message pops up. " 'cmap' must be an instance of matplotlib.colors.Colormap or None, not a str". Please kindly provide me with a solution.

Sincerely, Kaushik Sarker Graduate Research Assistant PhD student Center for Earthquake Research and Information University of Memphis

alkirkby commented 3 years ago

Could you please provide your script so we can look into this? is it an Occam inversion you are plotting? The example script works for me. ALternatively you can try providing a matplotlib.cm instance as an input instead of a string, e.g. if you want the 'bwr_r' colormap you can go: from matplotlib import cm cmap = cm.bwr_r