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

Export data for plot #1721

Open
HumbertHumbert7 opened this issue Apr 23, 2024 · 4 comments
Open

Export data for plot #1721

HumbertHumbert7 opened this issue Apr 23, 2024 · 4 comments

Comments

@HumbertHumbert7
Copy link

HumbertHumbert7 commented Apr 23, 2024

Once I get the solution, is it possible to export the results and plot them using ParaView?
Thank you

@praksharma
Copy link
Contributor

dde.saveplot(losshistory, train_state, issave=True, isplot=False)

This will save the loss history in loss.dat, the predicted solution with the best model in test.dat. For plotting you can use matplotlib.

@HumbertHumbert7
Copy link
Author

Thank you very much, I know how to plot in matplotlib but I would like to know if there is a way to export the data and obtain a better plot in Praview.

@praksharma
Copy link
Contributor

praksharma commented Apr 25, 2024

Once you have the dat file, you can do whatever you want. Paraview has so many filter to plot CSV file, but that is out of scope of this discussion. I personally use plt.imshow() from a meshgrid and interpolation the values at those grids.

@HumbertHumbert7
Copy link
Author

Thank you very much. I’ll try it

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

2 participants