Skip to content

Commit

Permalink
cleaned up examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgillian committed Jan 2, 2017
1 parent 30fa504 commit 092afad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
6 changes: 1 addition & 5 deletions example_timeseries_plot/src/ofApp.cpp
Expand Up @@ -43,11 +43,7 @@ void ofApp::update(){
//Update the 1st plot
data[0] = mouseX;
data[1] = mouseY;
if (abs(mouseX - lastX) > abs(mouseY - lastY))
plot1.update( data, 1, "Horizontal" );
else if (abs(mouseX - lastX) < abs(mouseY - lastY))
plot1.update( data, 2, "Vertical" );
else plot1.update( data );
plot1.update( data );

//Update the 2nd plot
data[0] = lastX > 0 ? (mouseX-lastX) / delta : 0.0;
Expand Down
3 changes: 0 additions & 3 deletions src/ofxGrtTimeseriesPlot.cpp
Expand Up @@ -29,7 +29,6 @@ ofxGrtTimeseriesPlot::ofxGrtTimeseriesPlot(){
yAxisInfo = " Y";
insetPlotByInfoMarginX = true;
insetPlotByInfoMarginY = true;
errorLog.setKey("[ERROR ofxGrtTimeseriesPlot]");
}

ofxGrtTimeseriesPlot::~ofxGrtTimeseriesPlot(){
Expand Down Expand Up @@ -410,8 +409,6 @@ bool ofxGrtTimeseriesPlot::setData( const vector< vector<float> > &data, const b
bool ofxGrtTimeseriesPlot::setData( const vector< vector<float> > &data, const bool rowsAreChannels ){

std::unique_lock<std::mutex> lock( mtx );

const unsigned int M = (unsigned int)data.size();

dataBuffer.reset(); highlightBuffer.reset(); labelBuffer.reset();

Expand Down

0 comments on commit 092afad

Please sign in to comment.