mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-09 20:50:43 +00:00
Expanded XTicker scale choices for big day
This commit is contained in:
parent
9da59c3616
commit
3f4bf6ed27
@ -8,7 +8,7 @@
|
|||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include "gXAxis.h"
|
#include "gXAxis.h"
|
||||||
|
|
||||||
const int divisors[]={86400000,3600000,2700000,1800000,1200000,900000,600000,300000,120000,60000,45000,30000,20000,15000,10000,5000,2000,1000,100,50,10};
|
const int divisors[]={86400000,2880000,14400000,7200000,3600000,2700000,1800000,1200000,900000,600000,300000,120000,60000,45000,30000,20000,15000,10000,5000,2000,1000,100,50,10};
|
||||||
const int divcnt=sizeof(divisors)/sizeof(int);
|
const int divcnt=sizeof(divisors)/sizeof(int);
|
||||||
|
|
||||||
gXAxis::gXAxis(QColor col)
|
gXAxis::gXAxis(QColor col)
|
||||||
@ -67,17 +67,17 @@ void gXAxis::Plot(gGraphWindow & w,float scrx,float scry)
|
|||||||
fitmode=0;
|
fitmode=0;
|
||||||
} else if (xx>600000) { // Minutes
|
} else if (xx>600000) { // Minutes
|
||||||
fd="00:00";
|
fd="00:00";
|
||||||
dividx=1;
|
dividx=4;
|
||||||
divmax=15;
|
divmax=18;
|
||||||
fitmode=1;
|
fitmode=1;
|
||||||
} else if (xx>5000) { // Seconds
|
} else if (xx>5000) { // Seconds
|
||||||
fd="00:00:00";
|
fd="00:00:00";
|
||||||
dividx=6;
|
dividx=9;
|
||||||
divmax=17;
|
divmax=20;
|
||||||
fitmode=2;
|
fitmode=2;
|
||||||
} else { // Microseconds
|
} else { // Microseconds
|
||||||
fd="00:00:00:000";
|
fd="00:00:00:000";
|
||||||
dividx=16;
|
dividx=19;
|
||||||
divmax=divcnt;
|
divmax=divcnt;
|
||||||
fitmode=3;
|
fitmode=3;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user