simpeg / discretize

Discretization tools for finite volume and inverse problems.
http://discretize.simpeg.xyz/
MIT License
166 stars 34 forks source link

mesh.get_slice() for Tree meshes? #255

Open lheagy opened 3 years ago

lheagy commented 3 years ago

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)

lheagy commented 3 years ago

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?