Histogram2D, nan value is transperant
This commit is contained in:
parent
921580a6c6
commit
2e9a64ccfd
|
@ -32,7 +32,7 @@ public:
|
||||||
|
|
||||||
void SetChannelMap(bool onOff, int tickStep = 1) { isChannelMap = onOff; this->tickStep = tickStep;}
|
void SetChannelMap(bool onOff, int tickStep = 1) { isChannelMap = onOff; this->tickStep = tickStep;}
|
||||||
|
|
||||||
void UpdatePlot(){ colorMap->rescaleDataRange(); replot(); }
|
void UpdatePlot(){ colorMap->rescaleDataRange(true); replot(); }
|
||||||
void Clear(); // Clear Data and histrogram
|
void Clear(); // Clear Data and histrogram
|
||||||
|
|
||||||
void Fill(double x, double y);
|
void Fill(double x, double y);
|
||||||
|
@ -135,7 +135,7 @@ inline Histogram2D::Histogram2D(QString title, QString xLabel, QString yLabel, i
|
||||||
|
|
||||||
QCPColorGradient color;
|
QCPColorGradient color;
|
||||||
color.setNanHandling(QCPColorGradient::NanHandling::nhNanColor);
|
color.setNanHandling(QCPColorGradient::NanHandling::nhNanColor);
|
||||||
color.setNanColor(QColor("white"));
|
color.setNanColor(QColor(0,0,0,0));
|
||||||
color.clearColorStops();
|
color.clearColorStops();
|
||||||
// color.setColorStopAt( 0.0, QColor("white" ));
|
// color.setColorStopAt( 0.0, QColor("white" ));
|
||||||
color.setColorStopAt( 0.0, QColor("purple" ));
|
color.setColorStopAt( 0.0, QColor("purple" ));
|
||||||
|
@ -268,8 +268,6 @@ inline Histogram2D::Histogram2D(QString title, QString xLabel, QString yLabel, i
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
inline void Histogram2D::Fill(double x, double y){
|
inline void Histogram2D::Fill(double x, double y){
|
||||||
// DebugPrint("%s", "Histogram2D");
|
// DebugPrint("%s", "Histogram2D");
|
||||||
if( isBusy ) return;
|
if( isBusy ) return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user