1
0
mirror of synced 2025-02-17 18:59:21 +01:00

fix: Invalid axis labels in data information view

This commit is contained in:
WerWolv 2022-10-12 12:24:11 +02:00
parent b41d01f126
commit d17911d753
9 changed files with 10 additions and 2 deletions

View File

@ -208,7 +208,7 @@ namespace hex::plugin::builtin {
ImGui::TextUnformatted("hex.builtin.view.information.distribution"_lang);
if (ImPlot::BeginPlot("##distribution", ImVec2(-1, 0), ImPlotFlags_NoChild | ImPlotFlags_NoLegend | ImPlotFlags_NoMenus | ImPlotFlags_NoBoxSelect)) {
ImPlot::SetupAxes("Address", "Count", ImPlotAxisFlags_Lock, ImPlotAxisFlags_Lock | ImPlotAxisFlags_LogScale);
ImPlot::SetupAxes("hex.builtin.common.value"_lang, "hex.builtin.common.count"_lang, ImPlotAxisFlags_Lock, ImPlotAxisFlags_Lock | ImPlotAxisFlags_LogScale);
ImPlot::SetupAxesLimits(0, 256, 1, double(*std::max_element(this->m_valueCounts.begin(), this->m_valueCounts.end())) * 1.1F, ImGuiCond_Always);
static auto x = [] {
@ -227,7 +227,7 @@ namespace hex::plugin::builtin {
ImGui::TextUnformatted("hex.builtin.view.information.entropy"_lang);
if (ImPlot::BeginPlot("##entropy", ImVec2(-1, 0), ImPlotFlags_NoChild | ImPlotFlags_CanvasOnly)) {
ImPlot::SetupAxes("Address", "Entropy", ImPlotAxisFlags_Lock, ImPlotAxisFlags_Lock);
ImPlot::SetupAxes("hex.builtin.common.address"_lang, "hex.builtin.view.information.entropy"_lang, ImPlotAxisFlags_Lock, ImPlotAxisFlags_Lock);
ImPlot::SetupAxesLimits(0, this->m_blockEntropy.size(), -0.1F, 1.1F, ImGuiCond_Always);
ImPlot::PlotLine("##entropy_line", this->m_blockEntropy.data(), this->m_blockEntropy.size());

View File

@ -82,6 +82,7 @@ namespace hex::plugin::builtin {
{ "hex.builtin.common.choose_file", "Datei auswählen" },
{ "hex.builtin.common.processing", "Verarbeiten" },
{ "hex.builtin.common.filter", "Filter" },
{ "hex.builtin.common.count", "Anzahl" },
{ "hex.builtin.common.value", "Wert" },
{ "hex.builtin.common.type", "Typ" },
{ "hex.builtin.common.type.u8", "uint8_t" },

View File

@ -83,6 +83,7 @@ namespace hex::plugin::builtin {
{ "hex.builtin.common.choose_file", "Choose file" },
{ "hex.builtin.common.processing", "Processing" },
{ "hex.builtin.common.filter", "Filter" },
{ "hex.builtin.common.count", "Count" },
{ "hex.builtin.common.value", "Value" },
{ "hex.builtin.common.type", "Type" },
{ "hex.builtin.common.type.u8", "uint8_t" },

View File

@ -82,6 +82,7 @@ namespace hex::plugin::builtin {
{ "hex.builtin.common.choose_file", "Scegli file" },
//{ "hex.builtin.common.processing", "Processing" },
//{ "hex.builtin.common.filter", "Filter" },
//{ "hex.builtin.common.count", "Count" },
//{ "hex.builtin.common.value", "Value" },
//{ "hex.builtin.common.type", "Type" },
{ "hex.builtin.common.type.u8", "uint8_t" },

View File

@ -82,6 +82,7 @@ namespace hex::plugin::builtin {
{ "hex.builtin.common.choose_file", "ファイルを選択" },
// { "hex.builtin.common.processing", "Processing" },
{ "hex.builtin.common.filter", "フィルタ" },
//{ "hex.builtin.common.count", "Count" },
{ "hex.builtin.common.value", "" },
//{ "hex.builtin.common.type", "Type" },
{ "hex.builtin.common.type.u8", "uint8_t" },

View File

@ -82,6 +82,7 @@ namespace hex::plugin::builtin {
{ "hex.builtin.common.choose_file", "파일 선택" },
{ "hex.builtin.common.processing", "작업 중" },
{ "hex.builtin.common.filter", "필터" },
//{ "hex.builtin.common.count", "Count" },
{ "hex.builtin.common.value", "" },
{ "hex.builtin.common.type", "타입" },
{ "hex.builtin.common.type.u8", "uint8_t" },

View File

@ -82,6 +82,7 @@ namespace hex::plugin::builtin {
{ "hex.builtin.common.choose_file", "Escolher arquivo" },
{ "hex.builtin.common.processing", "Processando" },
//{ "hex.builtin.common.filter", "Filter" },
//{ "hex.builtin.common.count", "Count" },
//{ "hex.builtin.common.value", "Value" },
//{ "hex.builtin.common.type", "Type" },
{ "hex.builtin.common.type.u8", "uint8_t" },

View File

@ -82,6 +82,7 @@ namespace hex::plugin::builtin {
{ "hex.builtin.common.choose_file", "选择文件" },
{ "hex.builtin.common.processing", "处理" },
{ "hex.builtin.common.filter", "过滤器" },
//{ "hex.builtin.common.count", "Count" },
{ "hex.builtin.common.value", "" },
{ "hex.builtin.common.type", "类型" },
{ "hex.builtin.common.type.u8", "uint8_t" },

View File

@ -82,6 +82,7 @@ namespace hex::plugin::builtin {
{ "hex.builtin.common.choose_file", "選擇檔案" },
{ "hex.builtin.common.processing", "正在處理" },
//{ "hex.builtin.common.filter", "Filter" },
//{ "hex.builtin.common.count", "Count" },
//{ "hex.builtin.common.value", "Value" },
//{ "hex.builtin.common.type", "Type" },
{ "hex.builtin.common.type.u8", "uint8_t" },