Skip to content

Plot values at their locations, not interpolate to cell centers #249

Open
@prisae

Description

@prisae

Currently plot_slice, plot_3d_slicer, and potentially other plotting routines average edge- and face-defined values to cell centres. This has at least two implications:

  • the plotted result is less precise, as the values are linearly interpolated (we don't plot the actually computed numbers);
  • the memory requirement for the required interpolation can be limiting if you have millions of cells.

It should not be difficult to change, I think. We could even have a flag to keep the current way or choose the new way. Instead of interpolation we would have to choose the corresponding locations.

What I am not sure is if there are other reasons, which I have not thought of, which would prevent us from making this change?

(Carrying it over from Slack.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementvizAnything about visualization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions