mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#829 Use interpolated colors in category legend by default
This commit is contained in:
parent
ed93db724a
commit
39d82a28f4
@ -398,7 +398,7 @@ void RimLegendConfig::updateLegend()
|
||||
break;
|
||||
case CATEGORY_INTEGER:
|
||||
m_categoryMapper->setCategoriesWithNames(m_categories, m_categoryNames);
|
||||
m_categoryMapper->setCycleColors(legendColors);
|
||||
m_categoryMapper->setInterpolateColors(legendColors);
|
||||
m_currentScalarMapper = m_categoryMapper.p();
|
||||
break;
|
||||
default:
|
||||
|
@ -41,7 +41,7 @@ void CategoryMapper::setCategoriesWithNames(const std::vector<int>& categoryValu
|
||||
|
||||
ref<Color3ubArray> colorArr = ScalarMapper::colorTableArray(ColorTable::NORMAL);
|
||||
|
||||
setCycleColors(*(colorArr.p()));
|
||||
setInterpolateColors(*(colorArr.p()));
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user