##// END OF EJS Templates
Calls plot refresh when the editor is closed
Calls plot refresh when the editor is closed

File last commit:

r1049:76aa4956fdf0
r1054:121d1ac0be46
Show More
SqpColorScale.cpp
17 lines | 459 B | text/x-c | CppLexer
#include "Visualization/SqpColorScale.h"
namespace {
const auto DEFAULT_GRADIENT_PRESET = QCPColorGradient::gpJet;
const auto DEFAULT_RANGE = QCPRange{1.0e3, 1.7e7};
} // namespace
SqpColorScale::SqpColorScale(QCustomPlot &plot)
: m_Scale{new QCPColorScale{&plot}},
m_AutomaticThreshold{false},
m_GradientPreset{DEFAULT_GRADIENT_PRESET}
{
m_Scale->setGradient(m_GradientPreset);
m_Scale->setDataRange(DEFAULT_RANGE);
}