expand plots
This commit is contained in:
parent
7dfb1f6d4e
commit
8e90a3b420
@ -438,13 +438,15 @@ int main(int argc, char* argv[])
|
||||
|
||||
sprintf(str, "mag scale##%d", i);
|
||||
ImGui::SliderFloat(str, &plot_scale[i], 0.01f, 0.1f);
|
||||
ImGui::PushItemWidth(ImGui::GetContentRegionAvail().x);
|
||||
{
|
||||
std::lock_guard<std::mutex> guard(li_hist_mutex);
|
||||
sprintf(str, "magnitude##%d", i);
|
||||
sprintf(str, "##magnitude%d", i);
|
||||
ImGui::PlotLines(str, li_hist_mag[i], HIST_DEPTH, 0, 0, -0.0f, 0.1f*plot_scale[i], ImVec2(0.0f, 200.0f));
|
||||
sprintf(str, "phase##%d", i);
|
||||
sprintf(str, "##phase%d", i);
|
||||
ImGui::PlotLines(str, li_hist_phase[i], HIST_DEPTH, 0, 0, -M_PI, M_PI, ImVec2(0.0f, 200.0f));
|
||||
}
|
||||
ImGui::PopItemWidth();
|
||||
ImGui::Text("values: %8.5f %8.5f rad", (double)li_mag[i], (double)li_phase[i]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user