mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 03:30:44 +00:00
gLineChart not drawing to left edge in normal waveform plots
This commit is contained in:
parent
7f0699d426
commit
049f819644
@ -149,7 +149,7 @@ gGraph::gGraph(gGraphView *graphview,QString title,int height,short group) :
|
|||||||
m_height(height),
|
m_height(height),
|
||||||
m_visible(true)
|
m_visible(true)
|
||||||
{
|
{
|
||||||
m_min_height=80;
|
m_min_height=60;
|
||||||
m_layers.clear();
|
m_layers.clear();
|
||||||
|
|
||||||
if (graphview) {
|
if (graphview) {
|
||||||
@ -948,7 +948,7 @@ void gGraphView::paintGL()
|
|||||||
glVertex2f(0, height());
|
glVertex2f(0, height());
|
||||||
glVertex2f(0, 0);
|
glVertex2f(0, 0);
|
||||||
|
|
||||||
glColor4f(0.8,0.8,1.0,1.0); // Gradient End
|
glColor4f(0.3,0.3,1.0,1.0); // Gradient End
|
||||||
glVertex2f(width(), 0);
|
glVertex2f(width(), 0);
|
||||||
glVertex2f(width(), height());
|
glVertex2f(width(), height());
|
||||||
|
|
||||||
|
@ -328,6 +328,11 @@ void gLineChart::paint(gGraph & w,int left, int top, int width, int height)
|
|||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
// Normal Waveform Plot
|
// Normal Waveform Plot
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
|
if (idx>sam) {
|
||||||
|
idx-=sam;
|
||||||
|
time=el.time(idx);
|
||||||
|
//double rate=double(sr)*double(sam);
|
||||||
|
}
|
||||||
for (int i=idx;i<siz;i+=sam) {
|
for (int i=idx;i<siz;i+=sam) {
|
||||||
time+=rate;
|
time+=rate;
|
||||||
//if (time < minx)
|
//if (time < minx)
|
||||||
|
Loading…
Reference in New Issue
Block a user