Skip to content

ofxyz/ofxImPlot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ofxImPlot

preview

openFrameworks addon wrapping ImPlot — an immediate-mode plotting library for Dear ImGui.

Bundled ImPlot version: 0.17

Dependencies

Usage

#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();
}

License

ImPlot is licensed under the MIT License. See libs/implot/LICENSE for details.

About

Plotting has never been as much fun

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages