1
0
Fork 0
mirror of https://github.com/gwm17/implot.git synced 2024-11-13 22:48:50 -05:00
This commit is contained in:
Evan Pezent 2020-04-27 23:57:57 -05:00
commit d372e1a1a5

View File

@ -25,7 +25,7 @@ The API is used just like any other ImGui `Begin`/`End` function. First, start a
```cpp
if (ImGui::BeginPlot("My Plot")) {
ImGui::Plot("My Line Plot", x_data y_data, 1000);
ImGui::Plot("My Line Plot", x_data, y_data, 1000);
ImGui::PlotBar("My Bar Plot", values, 10);
...
ImGui::EndPlot();
@ -36,7 +36,7 @@ Consult `implot_demo.cpp` for a comprehensive example of ImPlot's features.
## Integration
Just add `implot.h`, `implot.cpp`, and optionally `implot_demo.cpp` to your sources. This assumes you already have an ImGui-ready environment. If not, consider trying [mahi-gui], which bundles ImGui, ImPlot, and several other packages for you.
Just add `implot.h`, `implot.cpp`, and optionally `implot_demo.cpp` to your sources. This assumes you already have an ImGui-ready environment. If not, consider trying [mahi-gui](https://github.com/mahilab/mahi-gui), which bundles ImGui, ImPlot, and several other packages for you.
## Special Notes
- By default, no anti-aliasing is done on line plots for performance reasons. My apps use 4X MSAA, so I didn't see any reason to waste cycles on software AA. However, you can enable AA with the `ImPlotFlags_AntiAliased` flag.