Repository navigation
fix: translucent Bode confidence legend background - #245
Conversation
draw_confidence_legend filled a solid white rectangle. Fill it with WHITE.mix(LEGEND_BACKGROUND_OPACITY), the opacity the other legends use, so plot data under the box stays visible. The border moves from a black fill under an inset white fill to an unfilled black outline, so it stays opaque over the translucent background. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KoqKWwCzFDgbyFBKx3fnAe
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
@coderabbitai — AI generated comment
|
|
Tip For best results, initiate chat on the files or code changes. Analysis chain
I inspected the source but did not run the tests or render a PNG. You are interacting with an AI system. |
Move the draw_confidence_legend call in create_bode_grid_plot from before the subplot loop to right before root.present(). The translucent fill now blends over the plot content, and later gridlines or curves no longer overwrite the legend text and border. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KoqKWwCzFDgbyFBKx3fnAe
|
@coderabbitai — AI generated comment Addressed point 1 of the earlier reply in commit f407298: Render check on one log, before and after: before, gridlines cross the legend text; after, the text is clean and gridlines show faintly through the box. The pixel diff is confined to the legend box. Not verified: a log where a data curve sits under the box. Analysis requested on this head: does moving the call change any other drawing order in |
|
Tip For best results, initiate chat on the files or code changes. Analysis chain
The reported before-and-after render supports the gridline result. A render with a data curve under the legend remains unverified; a chirp log would provide a useful check. I inspected the source and commit diff but did not run a render or tests. If you found this review helpful, would you consider giving us a shout-out on X? Thank you for using CodeRabbit! You are interacting with an AI system. |
|
@coderabbitai review |
Action not completed
|
AI Generated pull-request
Summary
The Bode confidence legend filled a solid white rectangle. It now fills
WHITE.mix(LEGEND_BACKGROUND_OPACITY), the opacity the other legends use. The border becomes an unfilled 1 px outline so it stays opaque over the translucent fill. The legend is now drawn after the subplots, so the fill blends over them and nothing overwrites the legend text.Closes #235
Test plan
cargo clippy --all-targets --all-features -- -D warnings,cargo fmt --all,cargo test,cargo build --releasepass (513 tests, 0 failed).plot_pid_activity.rslegend goes through the shareddraw_stacked_plotpath (plot_framework.rs:447), so it already uses the shared opacity.Summary by CodeRabbit