mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-09 12:40:43 +00:00
LineChart weirdness attempt 2
This commit is contained in:
parent
45c3c5d55d
commit
94f853d65b
@ -75,7 +75,7 @@ void gLineChart::Plot(gGraphWindow & w,float scrx,float scry)
|
|||||||
}
|
}
|
||||||
|
|
||||||
double xx=maxx-minx, yy=maxy-miny;
|
double xx=maxx-minx, yy=maxy-miny;
|
||||||
float xmult=width/xx, ymult=(height)/yy; // time to pixel conversion multiplier
|
EventDataType xmult=double(width)/xx, ymult=double(height)/yy; // time to pixel conversion multiplier
|
||||||
|
|
||||||
// Return on screwy min/max conditions
|
// Return on screwy min/max conditions
|
||||||
if ((xx<0) || (yy<0))
|
if ((xx<0) || (yy<0))
|
||||||
@ -236,7 +236,7 @@ void gLineChart::Plot(gGraphWindow & w,float scrx,float scry)
|
|||||||
EventDataType data;
|
EventDataType data;
|
||||||
EventDataType gain=el.gain();
|
EventDataType gain=el.gain();
|
||||||
EventDataType nmult=ymult*gain;
|
EventDataType nmult=ymult*gain;
|
||||||
EventDataType ymin=miny/gain;
|
EventDataType ymin=EventDataType(miny)/EventDataType(gain);
|
||||||
|
|
||||||
const vector<EventStoreType> & dat=el.getData();
|
const vector<EventStoreType> & dat=el.getData();
|
||||||
const vector<quint32> & tim=el.getTime();
|
const vector<quint32> & tim=el.getTime();
|
||||||
|
Loading…
Reference in New Issue
Block a user