mirror of
https://github.com/gwm17/implot.git
synced 2024-11-14 06:58:50 -05:00
Merge branch 'master' of https://github.com/epezent/implot
This commit is contained in:
commit
d372e1a1a5
|
@ -25,7 +25,7 @@ The API is used just like any other ImGui `Begin`/`End` function. First, start a
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
if (ImGui::BeginPlot("My Plot")) {
|
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::PlotBar("My Bar Plot", values, 10);
|
||||||
...
|
...
|
||||||
ImGui::EndPlot();
|
ImGui::EndPlot();
|
||||||
|
@ -36,7 +36,7 @@ Consult `implot_demo.cpp` for a comprehensive example of ImPlot's features.
|
||||||
|
|
||||||
## Integration
|
## 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
|
## 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.
|
- 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.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user