Skip to content

Show fewer charts instead of none when they don't all fit - #535

Open
cjolivier01 wants to merge 1 commit into
Syllo:masterfrom
cjolivier01:upstream-fix/charts-vanish
Open

cjolivier01 wants to merge 1 commit into
Syllo:masterfrom
cjolivier01:upstream-fix/charts-vanish

Conversation

@cjolivier01

@cjolivier01 cjolivier01 commented Oct 17, 2026 •

Copy link
Copy Markdown

When no two charts can be merged without exceeding MAX_LINES_PER_PLOT, preliminary_plot_positioning() sets num_plot_stacks = 0 — so instead of showing fewer charts, it shows none.

before and after

Above is two GPUs with four metrics each at 80x24. Driving compute_sizes_from_layout() directly, three metrics on three GPUs is enough:

2 metrics 3 metrics
3 GPUs @ 100x30 3 charts 0
4 GPUs @ 120x30 4 charts 0
8 GPUs @ 200x30 8 charts 0

With the fix those become 2, 3 and 5.

Drops one chart and retries rather than giving up. An integrated GPU's goes first — on a hybrid machine the discrete card is the one you're watching, and it's usually the higher index, so dropping the last plot would pick exactly the wrong one.

🤖 Generated with Claude Code

@cjolivier01
cjolivier01 marked this pull request as ready for review October 17, 2026 17:13
When no two charts can be merged without exceeding MAX_LINES_PER_PLOT,
the layout gave up and set num_plot_stacks = 0, so the whole chart area
disappeared. Three metrics on three GPUs is enough to hit it:

  100x30, 3 GPUs, 2 metrics -> 3 charts
  100x30, 3 GPUs, 3 metrics -> 0 charts

Drop one chart and retry instead. An integrated GPU's goes first, since
on a hybrid machine the discrete card is the one being watched.
@cjolivier01
cjolivier01 force-pushed the upstream-fix/charts-vanish branch from cc30559 to bdaf629 Compare October 17, 2026 17:16
@cjolivier01
cjolivier01 marked this pull request as draft October 17, 2026 17:18
@cjolivier01
cjolivier01 marked this pull request as ready for review October 17, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant