Skip to content
Snippets Groups Projects
Commit 37c6e60d authored by Thomas Fetzer's avatar Thomas Fetzer
Browse files

[plotmateriallaw] Set log scale for y axis, if high capillary pressures occur

parent 8c9b32e8
No related branches found
No related tags found
1 merge request!229Feature/plotmateriallawlogscale
...@@ -95,6 +95,13 @@ public: ...@@ -95,6 +95,13 @@ public:
} }
} }
// use log scale for very high capillary pressures
if (pcMax / std::max(pcMin, 1.0) > 1e6)
{
gnuplotpcsw_.setOption("set log y");
pcMin = std::max(pcMin, 1.0);
}
gnuplotpcsw_.setXRange(lowerSat, upperSat); gnuplotpcsw_.setXRange(lowerSat, upperSat);
gnuplotpcsw_.setYRange(pcMin, pcMax); gnuplotpcsw_.setYRange(pcMin, pcMax);
gnuplotpcsw_.setXlabel("wetting phase saturation [-]"); gnuplotpcsw_.setXlabel("wetting phase saturation [-]");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment