Skip to content

TetsuakiBaba/ofxGraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ofxGraph: a simple plotter for openframeworks

Example screenshot

Description

ofxGraph is a graph plotting addon for openframeworks.

  1. single/multiple plot
  2. Manual adjustable graph size and position
  3. detailed plot data information
  4. Adjustable buffer size
  5. CSV file export with a save dialog
  6. Automatic saving(position and size). except for ofxGui settings.
  7. New: Added Bar Graph Mode. you can change graph mode to bar or plot.

Compatible

  • openframeworks: v0.11.2
  • macOS: 12.0.1(Monterey)

Usage

  1. Copy ofxGraph/Example/bin/data/ofxGraph directory to your_OF_project_directory/bin/data
  2. Below is a minimal code to use ofxGraph.
void ofApp::setup(){

// ofxGraph Init
  graph.setup("sample");
  graph.setDx(1.0); // which means delta of time
  graph.setColor(ofColor::white);  // ofColor(255,255,255)
}
void ofApp::update(){
  // plot a random data on a each frame
  graph.add(ofRandom(-100,100));
}

void ofApp::draw(){
  ofBackground(50,50,50);
  graph.draw();
}

See Example for more detailed.

Example screenshot

Install

ofxGui and ofxXmlSettings are required.

Licence

MIT

Author

TetsuakiBaba

About

ofxGraph is a simple, easy and quick graph add-on for openframeworks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published