ansys/pydpf-post

Include an option on plot method to plot results only on named selections, so the rest of the structures is not shown

Opened this issue · 2 comments

Description of the feature

Currently, when user makes a plot on a named selection, the rest of the structure is kept in grey. Looking at plot method, plot(mesh=True, constructed_geometries=True, loads=True, boundary_conditions=True), mesh can only be True or False. There is another option, which is using plot_contour, but here again the obtained figure depends on the support. There is a workaound using pyvista options, but I would suggest including a simple option that allows user to plot only on a specific named selection, something like:

bar1_tot_displacement = simulation.displacement(named_selections=["BAR_1"], norm=True)
bar1_tot_displacement.plot(only_on_ns=True)

Steps for implementing the feature

No response

Useful links and references

No response

There is a workaound using pyvista options

Could you share perhaps the workaround?