Skip to content

Commit 0de52cc

Browse files
committed
Try to make the histogram smoother
1 parent 127f7c0 commit 0de52cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/qgsrasterlayerproperties.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1917,6 +1917,7 @@ void QgsRasterLayerProperties::refreshHistogram()
19171917
QgsRasterBandStats myRasterBandStats = mRasterLayer->bandStatistics( myIteratorInt );
19181918
mRasterLayer->populateHistogram( myIteratorInt, BINCOUNT, myIgnoreOutOfRangeFlag, myThoroughBandScanFlag );
19191919
QwtPlotCurve * mypCurve = new QwtPlotCurve( tr( "Band %1" ).arg( myIteratorInt ) );
1920+
mypCurve->setCurveAttribute( QwtPlotCurve::Fitted );
19201921
mypCurve->setRenderHint( QwtPlotItem::RenderAntialiased );
19211922
mypCurve->setPen( QPen( myColors.at( myIteratorInt ) ) );
19221923
QwtArray<double> myX2Data;//qwtarray is just a wrapped qvector

0 commit comments

Comments
 (0)