Can't plot an .iterfile
kaushik67 opened this issue · 0 comments
While trying to plot a .iterfile I get an incorrect image with this message. It was working fine previously.
runfile('C:/Users/kaush/Desktop/mtpy-v1.0/model2d.py', wdir='C:/Users/kaush/Desktop/mtpy-v1.0')
Reading from C:/Users/kaush/Desktop/mtpy-v1.0/mtpy/examples/model_files/Occam2d_old\OccamDataFile.dat
profile_angle = 97.0
geoelectric_strike = 7.0
number of sites = 15
number of frequencies = 19
Traceback (most recent call last):
File "C:\Users\kaush\Desktop\mtpy-v1.0\model2d.py", line 39, in
stationid=(-1,3)) # index of station name to plot
File "C:\Users\kaush\anaconda3\envs\mtpy\lib\site-packages\mtpy\modeling\occam2d_rewrite.py", line 4458, in init
self.plot()
File "C:\Users\kaush\anaconda3\envs\mtpy\lib\site-packages\mtpy\modeling\occam2d_rewrite.py", line 4536, in plot
vmax=self.climits[1]))
File "C:\Users\kaush\anaconda3\envs\mtpy\lib\site-packages\matplotlib\cbook\deprecation.py", line 451, in wrapper
return func(*args, **kwargs)
File "C:\Users\kaush\anaconda3\envs\mtpy\lib\site-packages\matplotlib\colorbar.py", line 416, in init
cbook._check_isinstance([colors.Colormap, None], cmap=cmap)
File "C:\Users\kaush\anaconda3\envs\mtpy\lib\site-packages\matplotlib\cbook_init_.py", line 2251, in _check_isinstance
type_name(type(v))))
TypeError: 'cmap' must be an instance of matplotlib.colors.Colormap or None, not a str