Skip to content

How to save xy_plot as a file in the working directory #4213

Answered by prmukherj
bhn-cell asked this question in Q&A
Discussion options

You must be logged in to vote

solver.settings.results.plot.xy_plot["Cp_plot"].write_to_file(file_name=).

For example:

solver.settings.results.plot.xy_plot["Cp_plot"].write_to_file(file_name="sample.txt")
or
solver.settings.results.plot.xy_plot["Cp_plot"].write_to_file(file_name="sample")

For getting this data as python float you need to parse the output file.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
5 replies
@bhn-cell
Comment options

@prmukherj
Comment options

@bhn-cell
Comment options

@prmukherj
Comment options

@bhn-cell
Comment options

Answer selected by prmukherj
Comment options

You must be logged in to vote
2 replies
@bhn-cell
Comment options

@prmukherj
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants