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

Figures not being saved #159

Open
wilsonweijun opened this issue Nov 30, 2021 · 0 comments
Open

Figures not being saved #159

wilsonweijun opened this issue Nov 30, 2021 · 0 comments

Comments

@wilsonweijun
Copy link

the data and model responses in ModEM module cant not be saved.

Expected Behavior

the figure can be saved.

Current Behavior

the figure can not be saved.

Possible Solution

Steps to Reproduce (for bugs)

# Paste your code here
#import os
from mtpy.modeling.modem import PlotResponse
#working directory and save path
wd='D:/mtpywin/mtpy/examples/model_files/ModEM_2'
savepath='D:/mtpywin/tmp'
respfn='Modular_MPI_NLCG_004.dat'
datafn='ModEM_Data.dat'
ro=PlotResponse(data_fn=os.path.join(wd,datafn),
                resp_fn=os.path.join(wd,respfn),
                plot_type=['Synth02'],
                plot_style=1,
                plot_z=False,
                )
ro.plot()
ro.save_figure(os.path.join(savepath,'response.jpg'),fig_dpi=350)
#

Context

Your Environment

  • Operating system: windows 10
  • MtPy version: V1.0 downloaded in 2020
  • Python version: 3.7.10
  • Matplotlib version:
  • Matplotlib backend (print(matplotlib.get_backend())):
  • QT version:

Installed Python Packages:
use pip freeze or conda list [-n ENVIRONMENT_NAME] to list all the installed libraries.

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