Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't plot an .iterfile #167

Open
kaushik67 opened this issue Jan 22, 2022 · 0 comments
Open

Can't plot an .iterfile #167

kaushik67 opened this issue Jan 22, 2022 · 0 comments

Comments

@kaushik67
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant