Always use red for gas and blue for water

This commit is contained in:
Magne Sjaastad
2020-09-20 12:19:51 +02:00
committed by Gaute Lindkvist
parent f981cf2ce0
commit 1d884ae117
4 changed files with 49 additions and 46 deletions

View File

@@ -342,6 +342,9 @@ void RiuRelativePermeabilityPlotPanel::plotCurvesInQwt( RiaEclipseUnitTools::Uni
std::vector<QPointF> points;
std::vector<WhichYAxis> axes;
const QColor waterColor = RiuGuiTheme::getColorByVariableName( "curveColorWater" );
const QColor gasColor = RiuGuiTheme::getColorByVariableName( "curveColorGas" );
bool shouldEnableRightYAxis = false;
for ( size_t i = 0; i < curveArr.size(); i++ )
@@ -427,7 +430,7 @@ void RiuRelativePermeabilityPlotPanel::plotCurvesInQwt( RiaEclipseUnitTools::Uni
{
addCurveConstSaturationIntersectionMarker( curve,
swat,
RiuGuiTheme::getColorByVariableName( "markerColor" ),
waterColor,
plotOnWhichYAxis,
plot,
myPlotMarkers,
@@ -443,7 +446,7 @@ void RiuRelativePermeabilityPlotPanel::plotCurvesInQwt( RiaEclipseUnitTools::Uni
{
addCurveConstSaturationIntersectionMarker( curve,
sgas,
RiuGuiTheme::getColorByVariableName( "markerColor" ),
gasColor,
plotOnWhichYAxis,
plot,
myPlotMarkers,
@@ -460,11 +463,11 @@ void RiuRelativePermeabilityPlotPanel::plotCurvesInQwt( RiaEclipseUnitTools::Uni
// Add vertical marker lines to indicate cell SWAT and/or SGAS saturations
if ( swat != HUGE_VAL )
{
addVerticalSaturationMarkerLine( swat, "SWAT", RiuGuiTheme::getColorByVariableName( "markerColor" ), plot, myPlotMarkers );
addVerticalSaturationMarkerLine( swat, "SWAT", waterColor, plot, myPlotMarkers );
}
if ( sgas != HUGE_VAL )
{
addVerticalSaturationMarkerLine( sgas, "SGAS", RiuGuiTheme::getColorByVariableName( "markerColor" ), plot, myPlotMarkers );
addVerticalSaturationMarkerLine( sgas, "SGAS", gasColor, plot, myPlotMarkers );
}
if ( logScaleLeftAxis )