Repository navigation
fix(plots): stop axis labels repeating or collapsing to 0 - #212
Merged
Merged
Conversation
Three plots truncated fractional tick values to whole numbers, so neighbouring ticks printed the same label: - RSeQC read duplication: plotters picked a 0.5 step, giving "0, 0, 1, 1, 2, 2". Ask for one tick per integer, as RSeQC's axis(side=2, at=0:ym) does. - RSeQC junction saturation: small junction counts (in thousands) all printed as "0". Show the decimals, as R's default axis does. - Qualimap coverage profile and coverage histogram: values >= 1 were rounded, giving "1, 2, 2, 3". Keep up to two decimals, with thousands separators. Only the y-axis labels change; plotted data is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Spotted while comparing plots for #211: three plots truncate fractional y-axis ticks to whole numbers, so neighbouring ticks print the same label. This is already on main and independent of #211 (the two merge cleanly).
0, 0, 1, 1, 2, 20, 1, 20on all 11 ticks0, 0.005, … 0.050, 0.5, 1, 2, 2, 30, 0.5, 1, 1.5, 2, 2.5axis(side=2, at=0:ym).format_y_labelkeeps up to two decimals (still with thousands separators).Only y-axis labels change; plotted data is identical. Unit tests added for both formatters.
🤖 Generated with Claude Code