mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Always use red for gas and blue for water
This commit is contained in:
committed by
Gaute Lindkvist
parent
f981cf2ce0
commit
1d884ae117
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user