Skip to content

Individual Scalar Bars on each subplot #3203

Answered by mikerife
Ahmed-Zeid asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Ahmed-Zeid
Good timing - I've been working on this all day for an example. I think that there is something defined in the PyMAPDL "MAPDL Theme" used for PyVista (in PyMAPDL) that is at conflict with the 'normal' PyVista. I think. Anyway I managed to get this working. Here are the commands I used skipping over the FEM creation and solution.

So first the PyVista Theme was reset (right after pyvista is imported).

import pyvista as pv
pv.set_plot_theme('default')

Now in the MAPDL /POST1 processor I gather some results and the mesh at the last set of results on the result file.

mapdl.set('last')
# add the node deformations to their positions to plot deformed shape
mapdl.upcoord(1)
mesh_1 = m…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Ahmed-Zeid
Comment options

Answer selected by Ahmed-Zeid
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