Skip to content

Commit

Permalink
Update implot.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
tay10r authored Sep 15, 2024
1 parent a07db93 commit 195044b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/implot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ plot_scatter(const char* label,
{
const auto* shape = data.shape();
if (data.ndim() == 2) {
ImPlot::PlotScatter(label, data.data(), data.data() + shape[0], shape[0], static_cast<ImPlotScatterFlags>(flags));
ImPlot::PlotScatter(label, data.data(), data.data() + shape[1], shape[1], static_cast<ImPlotScatterFlags>(flags));
} else if (data.ndim() == 1) {
ImPlot::PlotScatter(label, data.data(), shape[0], 1.0, 0.0, static_cast<ImPlotScatterFlags>(flags));
} else {
Expand Down

0 comments on commit 195044b

Please sign in to comment.