MCPcopy Create free account
hub / github.com/chrxh/alien / setPlotScale

Method setPlotScale

source/Gui/StatisticsWindow.cpp:728–746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

726}
727
728void StatisticsWindow::setPlotScale()
729{
730 if (_plotScale == PlotScale_Linear) {
731 ImPlot::SetupAxisScale(ImAxis_Y1, ImPlotScale_Linear);
732 return;
733 }
734 if (_plotScale == PlotScale_Logarithmic) {
735 ImPlot::SetupAxisScale(
736 ImAxis_Y1,
737 [](double value, void* user_data) {
738 return log(value * 1000 + 1.0) / log(2.0);
739 },
740 [](double value, void* user_data) {
741 return (pow(2.0f, value) - 1.0) / 1000;
742 });
743 return;
744 }
745 THROW_NOT_IMPLEMENTED();
746}
747
748double StatisticsWindow::getUpperBound(double maxValue)
749{

Callers

nothing calls this directly

Calls 1

logFunction · 0.85

Tested by

no test coverage detected