Add "minimum values in bin" parameter to histogram.

This commit is contained in:
Bartosz Taudul 2019-06-16 01:29:09 +02:00
parent 4186a71ee7
commit 8009c6412e
2 changed files with 8 additions and 2 deletions

View File

@ -6231,9 +6231,11 @@ void View::DrawFindZone()
ImGui::SameLine();
ImGui::TextDisabled( "(%.2f%%)", 100.f * zoneData.selfTotal / zoneData.total );
TextDisabledUnformatted( "Time range:" );
TextDisabledUnformatted( "Minimum values in bin:" );
ImGui::SameLine();
ImGui::Text( "%s - %s (%s)", TimeToString( tmin ), TimeToString( tmax ), TimeToString( tmax - tmin ) );
ImGui::SetNextItemWidth( ImGui::CalcTextSize( "123456890123456" ).x );
ImGui::InputInt( "##minBinVal", &m_findZone.minBinVal );
if( m_findZone.minBinVal < 1 ) m_findZone.minBinVal = 1;
const auto dt = double( tmax - tmin );
const auto cumulateTime = m_findZone.cumulateTime;
@ -6381,6 +6383,9 @@ void View::DrawFindZone()
}
}
TextDisabledUnformatted( "Time range:" );
ImGui::SameLine();
ImGui::Text( "%s - %s (%s)", TimeToString( tmin ), TimeToString( tmax ), TimeToString( tmax - tmin ) );
TextFocused( "Total time:", TimeToString( timeTotal ) );
ImGui::SameLine();
ImGui::Spacing();

View File

@ -374,6 +374,7 @@ private:
bool drawSelAvgMed = true;
bool scheduleResetMatch = false;
int selCs = 0;
int minBinVal = 1;
void Reset()
{