From f506f94c08fc00e9e248cfdd55d5faaa4f5986e7 Mon Sep 17 00:00:00 2001 From: Evan Pezent Date: Fri, 23 Oct 2020 16:27:45 -0500 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d04f5d1..362072c 100644 --- a/README.md +++ b/README.md @@ -48,9 +48,9 @@ ImPlot is an immediate mode, GPU accelerated plotting library for [Dear ImGui](h The API is used just like any other ImGui `BeginX`/`EndX` pair. First, start a new plot 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 -int bar_data[11]; -float x_data[1000]; -float y_data[1000]; +int bar_data[11] = ...; +float x_data[1000] = ...; +float y_data[1000] = ...; ImGui::Begin("My Window"); if (ImPlot::BeginPlot("My Plot")) {