Skip to content

Commit

Permalink
Set axes x and y as Seconds and Volts respectively with specific valu…
Browse files Browse the repository at this point in the history
…es/ticks
  • Loading branch information
R-Abbasi committed Nov 13, 2023
1 parent de57107 commit 7190d53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,11 @@ int main()
else
{
xmax_paused = x_max;
ImPlot::SetupAxes("x [Datenpunkte]", "y [ADC Wert]");
ImPlot::SetupAxes("x [Seconds]", "y [Volts]");
// x and y axes ranges: [0, 10], [-10, 200]
ImPlot::SetupAxesLimits(0, 10, -10, 200);
// make specific values/ticks on Y-axis
ImPlot::SetupAxisTicks(ImAxis_Y1, -10, 200, 22, nullptr, true);
}
});

Expand Down

0 comments on commit 7190d53

Please sign in to comment.