gempy-project / gempy

GemPy is an open-source, Python-based 3-D structural geological modeling software, which allows the implicit (i.e. automatic) creation of complex geological models from interface and orientation data. It also offers support for stochastic modeling to address parameter and model uncertainties.
https://gempy.org
European Union Public License 1.2
965 stars 232 forks source link

Update plotting API to plot 2-D sections by position, not cell id #882

Open flohorovicic opened 5 months ago

flohorovicic commented 5 months ago

Is your feature request related to a problem? Please describe. Problem: position of section plot becomes more difficult to determine for ochre refinements.

Describe the solution you'd like Add option to determine section by value, not cell id, e.g.:

p2d = gpv.plot_2d(geo_model, position=[500], alpha=0.2)

Describe alternatives you've considered Hack using model extent, initial resolution and octree refinement. Works obviously, but not intuitive (especially not for beginners).

Additional context n/a