Skip to content

Show window generated in pymapdl on third-party software (Qt Creator, PyQt) #3003

Answered by germa89
COOLEST-GET asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @COOLEST-GET

PyMAPDL plotting functions can return a pyvista plotter object:

pl = mapdl.post_processing.plot_nodal_displacements("X", return_plotter=True)

This plotter (pl) can be used inside your code, add more plots, or whatever. And then show it (pl.show()) in your code when needed.

Regarding specifics on how to couple this object with PyQT or Qt in general, I do not know. But I will refer you to pyvista library which handles all the plotting in PyMAPDL.

I think @mcMunich did an example with Qt. Can you show it?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@COOLEST-GET
Comment options

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