Repository navigation
fix(plot): draw the bounds and time lines in the concrete colours of CTBase - #528
Merged
Merged
Conversation
…CTBase The bound lines had color=15, an index into the palette of the backend: pink with Plots, but the colour of the first curve with Makie, whose palette has seven colours. They now take CTBase.Plotting.COLORS.bound (the pink of Plots, so nothing changes there) and the time lines COLORS.time. The compat of CTBase moves to 0.30.14. Closes #527 Co-Authored-By: Claude Sonnet 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.
Closes #527.
What changes
_BOUND_STYLEtakesCTBase.Plotting.COLORS.boundinstead ofcolor=15, and_TIME_STYLEtakesCOLORS.timeinstead of:black. An integer colour is an index into the palette of the backend, and the palettes differ: with Plots, 15 is the pink#dd65b6, but with Makie, whose default palette has seven colours, it wraps around to colour 1, the colour of the first curve.COLORS.boundis#dd65b6, so Plots is unchanged and Makie draws pink bounds.CTBasemoves to0.30.14, the release that providesCOLORS(Plotting: overlay colours drift across subplots, color= and margins are lost (Plots); bound colour wraps onto the first solution (Makie) CTBase.jl#657, #658).Tests
test_plot_build.jl: the bound and time lines carry the colours ofPlotting.COLORS, no default colour is an integer, and a user style still replaces the default.test_plot_makie.jl: with Makie, the bounds are drawn inCOLORS.bound, and that colour is in no curve. This test fails on the previous default style.Release
A patch release follows once this is merged, with
release.jl.🤖 Generated with Claude Code