Skip to content

Commit 963fec0

Browse files
committed
Try to make the histogram smoother
1 parent eb89be3 commit 963fec0

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
@@ -1920,6 +1920,7 @@ void QgsRasterLayerProperties::refreshHistogram()
19201920
QgsRasterBandStats myRasterBandStats = mRasterLayer->bandStatistics( myIteratorInt );
19211921
mRasterLayer->populateHistogram( myIteratorInt, BINCOUNT, myIgnoreOutOfRangeFlag, myThoroughBandScanFlag );
19221922
QwtPlotCurve * mypCurve = new QwtPlotCurve( tr( "Band %1" ).arg( myIteratorInt ) );
1923+
mypCurve->setCurveAttribute( QwtPlotCurve::Fitted );
19231924
mypCurve->setRenderHint( QwtPlotItem::RenderAntialiased );
19241925
mypCurve->setPen( QPen( myColors.at( myIteratorInt ) ) );
19251926
QwtArray<double> myX2Data;//qwtarray is just a wrapped qvector

0 commit comments

Comments
 (0)