simpeg / discretize

Discretization tools for finite volume and inverse problems.

Home Page:http://discretize.simpeg.xyz/

Repository from Github https://github.comsimpeg/discretizeRepository from Github https://github.comsimpeg/discretize

mesh.get_slice() for Tree meshes?

lheagy opened this issue · comments

The __plot_slice_tree method has a lot of logic for grabbing the correct values to plot in a plotslice. When generating plots with additional layers (e.g. a quiver plot for MVI) a lot of this logic needs to be repeated.

What do folks think of just having this be a method on a TreeMesh? and then __plot_slice_tree calls this and is more about the logic for plotting (e.g. starting at line 2106 at the moment)

just realizing that we can use the CCv call to get the plot that I want, but still, would it be worthwhile to separate the logic of getting the slice + viewing the slice?