Skip to content

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

Open
@jviqueg

Description

@jviqueg

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions