#4207 Allow changing color of plot symbol edges and update cross plots

* Cross plots have same color as the symbol itself.
This commit is contained in:
Gaute Lindkvist
2019-03-20 13:30:27 +01:00
parent f14cd3f1f7
commit ba7830e53c
3 changed files with 31 additions and 3 deletions

View File

@@ -466,6 +466,7 @@ void RimGridCrossPlotCurveSet::createCurves(const RigEclipseCrossPlotResult& res
int colorIndex = indexInPlot();
curve->setColor(colors.cycledColor3f(colorIndex));
}
curve->setSymbolEdgeColor(curve->color());
curve->setGroupingInformation(indexInPlot(), 0);
curve->setSamples(result.xValues, result.yValues);
curve->updateCurveAppearance();
@@ -522,6 +523,7 @@ void RimGridCrossPlotCurveSet::createCurves(const RigEclipseCrossPlotResult& res
{
curve->setColor(cvf::Color3f(legendConfig()->scalarMapper()->mapToColor(tickValues[it->first])));
}
curve->setSymbolEdgeColor(curve->color());
curve->setSamples(it->second.xValues, it->second.yValues);
curve->showLegend(m_crossPlotCurves.empty());
curve->setLegendEntryText(createAutoName());