mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#438) Showing "MD" or "TVD" on top of Y-axis according to depth type
This commit is contained in:
@@ -161,6 +161,14 @@ void RimWellLogPlotTrace::loadDataAndUpdate()
|
||||
{
|
||||
CVF_ASSERT(m_viewer);
|
||||
|
||||
RimWellLogPlot* wellLogPlot;
|
||||
firstAnchestorOrThisOfType(wellLogPlot);
|
||||
if (wellLogPlot)
|
||||
{
|
||||
QString depthTitle = wellLogPlot->depthType() == RimWellLogPlot::MEASURED_DEPTH ? "MD" : "TVD";
|
||||
m_viewer->setDepthTitle(depthTitle);
|
||||
}
|
||||
|
||||
for (size_t cIdx = 0; cIdx < curves.size(); ++cIdx)
|
||||
{
|
||||
curves[cIdx]->updatePlotData();
|
||||
|
||||
Reference in New Issue
Block a user