From 11c76701b9566114079e3cd3b1df81ae07607908 2012-03-29 14:48:04 From: Michal Klocek Date: 2012-03-29 14:48:04 Subject: [PATCH] Inreases decimal point in axis --- diff --git a/src/axis/axisitem.cpp b/src/axis/axisitem.cpp index 4645ab2..8d39801 100644 --- a/src/axis/axisitem.cpp +++ b/src/axis/axisitem.cpp @@ -107,6 +107,7 @@ bool Axis::createLabels(QStringList &labels,qreal min, qreal max,int ticks) cons if (!category) { int n = qMax(int(-floor(log10((max-min)/(ticks-1)))),0); + n++; for (int i=0; i< ticks; i++) { qreal value = min + (i * (max - min)/ (ticks-1)); labels << QString::number(value,'f',n);