Skip to content

Commit 14da191

Browse files
author
Radar Distance Monitor
committed
Further fix button positioning to completely eliminate title overlap
✅ Enhanced Layout Positioning: - Moved buttons from y=0.89 to y=0.86 for greater clearance from title - Adjusted main chart from [0.08, 0.32, 0.88, 0.55] to [0.08, 0.28, 0.88, 0.56] - Adjusted log panel from [0.08, 0.02, 0.88, 0.26] to [0.08, 0.02, 0.88, 0.22] ✅ Visual Improvements: - Ensures ample white space between chart title and time window buttons - Maintains optimal chart area for radar data visualization - Preserves log panel functionality with appropriate sizing - Creates clear visual hierarchy: Title → Space → Buttons → Chart → Log Panel This provides definitive separation between the title and interactive controls while maintaining excellent usability and readability.
1 parent 32d3738 commit 14da191

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/radar_distance_monitor.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,23 +275,23 @@ def __init__(self, collectors: List[RadarDataCollector], max_points: int = 100):
275275
# Set up the plot with an additional text area for recent logs
276276
self.fig = plt.figure(figsize=(12, 8))
277277
# Main chart axes (upper area, adjusted for time window buttons)
278-
self.ax = self.fig.add_axes([0.08, 0.32, 0.88, 0.55])
278+
self.ax = self.fig.add_axes([0.08, 0.28, 0.88, 0.56])
279279
# Log panel axes (lower area, larger height, placed lower to avoid overlap with legend)
280-
self.log_ax = self.fig.add_axes([0.08, 0.02, 0.88, 0.26])
280+
self.log_ax = self.fig.add_axes([0.08, 0.02, 0.88, 0.22])
281281
self.log_ax.axis('off')
282282
# Increase font size for distance viewing (half previous), and nudge one line down
283283
self.log_text = self.log_ax.text(0.01, 0.90, "", va='top', ha='left', family='monospace', fontsize=22)
284284
self.max_log_lines = 8 # retained but unused for now; kept for future toggles
285285
# Per-host latest log line (timestamp, tag, stream, line)
286286
self.latest_logs = {collector.host_id: None for collector in collectors}
287287

288-
# Add time window selection buttons (positioned below title)
288+
# Add time window selection buttons (positioned well below title)
289289
self.time_window_buttons = []
290290
button_width = 0.08
291291
button_height = 0.03
292292
button_spacing = 0.02
293293
start_x = 0.08
294-
button_y = 0.89 # Moved down to avoid overlapping with title
294+
button_y = 0.86 # Moved further down to ensure no overlap with title
295295

296296
from matplotlib.widgets import Button
297297

0 commit comments

Comments
 (0)