| 5167 | } |
| 5168 | |
| 5169 | void ShowUserGuide() { |
| 5170 | ImGui::BulletText("Left-click drag within the plot area to pan X and Y axes."); |
| 5171 | ImGui::Indent(); |
| 5172 | ImGui::BulletText("Left-click drag on axis labels to pan an individual axis."); |
| 5173 | ImGui::Unindent(); |
| 5174 | ImGui::BulletText("Scroll in the plot area to zoom both X any Y axes."); |
| 5175 | ImGui::Indent(); |
| 5176 | ImGui::BulletText("Scroll on axis labels to zoom an individual axis."); |
| 5177 | ImGui::Unindent(); |
| 5178 | ImGui::BulletText("Right-click drag to box select data."); |
| 5179 | ImGui::Indent(); |
| 5180 | ImGui::BulletText("Hold Alt to expand box selection horizontally."); |
| 5181 | ImGui::BulletText("Hold Shift to expand box selection vertically."); |
| 5182 | ImGui::BulletText("Left-click while box selecting to cancel the selection."); |
| 5183 | ImGui::Unindent(); |
| 5184 | ImGui::BulletText("Double left-click to fit all visible data."); |
| 5185 | ImGui::Indent(); |
| 5186 | ImGui::BulletText("Double left-click axis labels to fit the individual axis."); |
| 5187 | ImGui::Unindent(); |
| 5188 | ImGui::BulletText("Right-click open the full plot context menu."); |
| 5189 | ImGui::Indent(); |
| 5190 | ImGui::BulletText("Right-click axis labels to open an individual axis context menu."); |
| 5191 | ImGui::Unindent(); |
| 5192 | ImGui::BulletText("Click legend label icons to show/hide plot items."); |
| 5193 | } |
| 5194 | |
| 5195 | void ShowTicksMetrics(const ImPlotTicker& ticker) { |
| 5196 | ImGui::BulletText("Size: %d", ticker.TickCount()); |