Commit 7166e7f9c15ac6cccf980c23fced1e0863ca9fef

Authored by Benjamin Renard
1 parent aef1225b

Improve Z axis coordinate preview

Showing 1 changed file with 10 additions and 1 deletions   Show diff stats
src/ParamOutputImpl/Plot/PanelPlotOutput.cc
... ... @@ -1117,17 +1117,26 @@ namespace plot
1117 1117 values[0] = shedge;
1118 1118  
1119 1119 // set color map
  1120 + PLStream *p_pls = NULL;
  1121 + plgpls(&p_pls);
  1122 + PLINT ncol1 = p_pls->ncol1;
  1123 + _pls->scmap1n(1000);
  1124 +
1120 1125 _pls->spal1(
1121 1126 ColormapManager::getInstance().getColorAxis(pZAxis->_color._colorMapIndex).c_str(), true);
1122 1127  
1123 1128  
1124   - PLStream *p_pls = NULL;
1125 1129 plgpls(&p_pls);
1126 1130  
1127 1131 std::vector<std::array<int,3>> colorsList;
1128 1132 for (int i = 0; i < p_pls->ncol1; i++ ) {
1129 1133 colorsList.push_back({(int)p_pls->cmap1[i].r ,(int)p_pls->cmap1[i].g,(int)p_pls->cmap1[i].b});
1130 1134 }
  1135 +
  1136 + _pls->scmap1n(ncol1);
  1137 + _pls->spal1(
  1138 + ColormapManager::getInstance().getColorAxis(pZAxis->_color._colorMapIndex).c_str(), true);
  1139 +
1131 1140 // Get colored axis
1132 1141 boost::shared_ptr<ColorAxis> lZAxis = _panel->getColorAxis();
1133 1142 lZAxis->setColorsList(colorsList);
... ...