-
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Closed
Labels
Description
Using imgui 1.50 with love.imgui on Windows 10 and Ubuntu 17.10.
When drawing a graph with ImGui::PlotLines
where all values are the same, no lines are visible.
In the pictures, the top graph adds some extra values so that the graph is always visible (since it's common to remain at 60 FPS for extended periods of time). The bottom graph also does this, but it appends zeros, so when it's all zeros, nothing is visible.
Example of data where lines are drawn:
Example of data where no lines are drawn for the file access graph.
Example Lua code:
local values = {}
for i = 1, 120 do
values[i] = 0
end
imgui.PlotLines("graph", values, #values)
Untested C++ code:
float lines[120];
ImGui::PlotLines("graph", lines, 120);