ofxGraph is a graph plotting addon for openframeworks.
- single/multiple plot
- Manual adjustable graph size and position
- detailed plot data information
- Adjustable buffer size
- CSV file export with a save dialog
- Automatic saving(position and size). except for ofxGui settings.
- New: Added Bar Graph Mode. you can change graph mode to bar or plot.
- openframeworks: v0.11.2
- macOS: 12.0.1(Monterey)
- Copy ofxGraph/Example/bin/data/ofxGraph directory to your_OF_project_directory/bin/data
- 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.
ofxGui and ofxXmlSettings are required.