openFrameworks addon wrapping ImPlot — an immediate-mode plotting library for Dear ImGui.
Bundled ImPlot version: 0.17
#include "ofxImGui.h"
#include "ofxImPlot.h"
ofxImGui::Gui gui;
void ofApp::setup() {
gui.setup();
ImPlot::CreateContext();
}
void ofApp::draw() {
gui.begin();
if (ImGui::Begin("My Plot")) {
if (ImPlot::BeginPlot("##plot")) {
ImPlot::PlotLine("sin", xData, yData, count);
ImPlot::EndPlot();
}
}
ImGui::End();
gui.end();
}ImPlot is licensed under the MIT License. See libs/implot/LICENSE for details.
