MCPcopy Create free account
hub / github.com/ON4QZ/QSSTV / add1

Method add1

src/scope/scopeplot.cpp:294–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292
293
294void scopePlot::add1(short int *data, unsigned long len,QString name,QString yLeftLabel)
295{
296 x.resize(len);
297 c1.resize(len);
298 for (unsigned long i = 0; i < len; i++)
299 {
300
301 x[i]=(double)(i+xOffset)*xScaleMul;
302 c1[i]=(double)data[i];
303 }
304 plot1(name,yLeftLabel);
305}
306
307void scopePlot::add1(double *data, unsigned long len,QString curveName,QString yLeftLabel)
308{

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.80

Tested by

no test coverage detected