Commit 072ad007 authored by Locatelli's avatar Locatelli
Browse files

update color limits after plotting plot in update property server

received
parent 488ebc9b
......@@ -284,10 +284,6 @@ void PropertyPlot2D::update(int32 id) {
try {
// Get image data from server
getData(m_DataCont.dataZPropertyTypes[m_DataCont.dataZIds[0]], m_DataCont.dataZIds[0], m_dataz);
if (m_DoProjections == true) {
// Set color limits of color bar
colorLimits(m_MinColorLim, m_MaxColorLim);
}
if (m_DimChanged == true) {
// Reset limit of plots to get new sizes (reset zoom and pan too)
resetLimits();
......@@ -296,6 +292,8 @@ void PropertyPlot2D::update(int32 id) {
m_MplPlot2D.updateimage((int32) m_datax.size(), (int32) m_datay.size(), m_dataz);
if (m_DoProjections == true) {
updateProjections();
// Set color limits of color bar
colorLimits(m_MinColorLim, m_MaxColorLim);
}
// Redraw plots
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment