Skip to content

=> xlab/ylab & position in the middle#5

Merged
egenn merged 2 commits into
mainfrom
develop
Apr 28, 2026
Merged

=> xlab/ylab & position in the middle#5
egenn merged 2 commits into
mainfrom
develop

Conversation

@egenn
Copy link
Copy Markdown
Member

@egenn egenn commented Apr 28, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 28, 2026 12:24
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request renames the x_lab and y_lab parameters to xlab and ylab in the draw_spectrogram function and its documentation, while also introducing a name_location property for axes. A copy-paste error was identified in the y-axis configuration where the name_location logic incorrectly references xlab instead of ylab.

Comment thread r/R/draw_spectrogram.R Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Aligns draw_spectrogram()’s axis-label argument names with the rest of the drawing API (xlab/ylab) and adjusts axis title positioning to render in the middle.

Changes:

  • Renames x_lab/y_lab arguments to xlab/ylab in code and documentation.
  • Centers axis names via name_location = "middle" behavior in the ECharts Axis options.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
r/R/draw_spectrogram.R Renames axis label args and sets ECharts axis name positioning.
r/man/draw_spectrogram.Rd Updates generated Rd usage/arguments to xlab/ylab.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread r/R/draw_spectrogram.R
Comment thread r/R/draw_spectrogram.R
Comment on lines 243 to +247
show_colorbar = TRUE,
colorbar_title = NULL,
title = NULL,
x_lab = NULL,
y_lab = NULL,
xlab = NULL,
ylab = NULL,
Copy link

Copilot AI Apr 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renaming x_lab/y_lab to xlab/ylab is a breaking API change: existing user code calling draw_spectrogram(..., x_lab = ...) will now error with an unused argument. Consider keeping x_lab/y_lab as deprecated aliases (and mapping them to xlab/ylab, with a warning if both are provided) for at least one release cycle.

Copilot uses AI. Check for mistakes.
Comment thread r/R/draw_spectrogram.R
@egenn egenn merged commit 7b74b3d into main Apr 28, 2026
1 check passed
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.

2 participants