Repository navigation
|
mapdl.plnsol is used in my script. but this command suspend my program and a matplotlib figure shows up. how to prohibit the matplotlib figure showing to make sure my program go ahead smoothly? mapdl.plopts('info', 3)
mapdl.plopts('logo', 'off')
mapdl.plopts('vers', 0)
mapdl.view(1, '', -1)
mapdl.angle(1)
mapdl.auto(1)
mapdl.dist(1, 0.95, 1)
mapdl.plnsol('s', compent, 0, 1)# suspend program and show figure
mapdl.tlabel(0, 0.9, nm)
mapdl.replot()
mapdl.screenshot(os.path.join(pngpth, nm + '.png')) |
Answered by
germa89
Jul 10, 2026
Replies: 1 comment
|
Hi @war16641 The simplest thing to do is: mapdl.plnsol('s', compent, 0, 1, mute=True)You can also do: mapdl.tlabel(0, 0.9, nm)
mapdl.replot()
mapdl.plnsol('s', compent, 0, 1, savefig=os.path.join(pngpth, nm + '.png')) |
0 replies
Answer selected by
germa89
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @war16641
The simplest thing to do is:
You can also do:
Reference: https://mapdl.docs.pyansys.com/version/stable/user_guide/plotting.html#plotting-non-interactively-using-mapdl