MTgeophysics/mtpy

Issue with cmap while trying to plot an iter file

kaushik67 opened this issue · 1 comments

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

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