From 98ff9e8795d6fa0b7da59858992159ac0e5950bf Mon Sep 17 00:00:00 2001 From: Evan Pezent Date: Sat, 16 May 2020 09:21:01 -0500 Subject: [PATCH] update readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6c1f578..4aa9d39 100644 --- a/README.md +++ b/README.md @@ -32,12 +32,12 @@ ImPlot is an immediate mode plotting widget for [Dear ImGui](https://github.com/ ## Usage -The API is used just like any other ImGui `BeginX`/`EndX` pair. First, start a plotting context with `ImPlot::BeginPlot()`. Next, plot as many items as you want with the provided API functions (e.g. `Plot()`, `Bar()`, `ErrorBars()`, etc). Finally, wrap things up with a call to `ImPlot::EndPlot()`. That's it! +The API is used just like any other ImGui `BeginX`/`EndX` pair. First, start a plotting context with `ImPlot::BeginPlot()`. Next, plot as many items as you want with the provided `PlotX` functions (e.g. `PlotLine()`, `PlotBars()`, `PlotErrorBars()`, etc). Finally, wrap things up with a call to `ImPlot::EndPlot()`. That's it! ```cpp if (ImPlot::BeginPlot("My Plot")) { - ImPlot::Plot("My Line Plot", x_data, y_data, 1000); - ImPlot::Bar("My Bar Plot", values, 10); + ImPlot::PlotLine("My Line Plot", x_data, y_data, 1000); + ImPlot::PlotBars("My Bar Plot", values, 10); ... ImPlot::EndPlot(); }