Skip to content

Color attribute for materials/cells/universes #2506

Open
@pshriwise

Description

@pshriwise

Similar to #2503, I have a plotting query for the community.

The assignment of material/cell colors in a dictionary when creating a plotting object has always felt a little clunky to me. Serpent allows users to associate a color with a cell or material that will be applied in any plots or visualization. At first, it felt odd to me to mix something non-physical into the object description, but having the color assigned to the object would make it straightforward to keep colors consistent in plots generated by the Python API, the openmc executable, and the plotting utility.

Thoughts @paulromano @kkiesling @gridley?

Metadata

Metadata

Assignees

No one assigned

    Labels

    PlotsChanges related to plotting of models and results

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions