Skip to content

Series now uses Wong colors #4969

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

bertini97
Copy link

Description

Fixes #4926

Type of change

Delete options that do not apply:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • Added an entry in CHANGELOG.md (for new features and breaking changes)
  • Added or changed relevant sections in the documentation
  • Added unit tests for new algorithms, conversion methods, etc.
  • Added reference image tests for new plotting functions, recipes, visual options, etc.

@github-project-automation github-project-automation bot moved this to Work in progress in PR review May 12, 2025
@bertini97
Copy link
Author

This makes it so it uses Wong colors, but it's hardcoded and wrong. It should default to the default color cycle of the current palette. I don't know how to do it.

@@ -11,7 +11,7 @@ If any of `marker`, `markersize`, `markercolor`, `strokecolor` or `strokewidth`
"""
@recipe Series (curves::AbstractVector{<:Union{BezierPath,AbstractVector{<:Point}}},) begin
linewidth=2
color=:lighttest
color=wong_colors()
Copy link
Member

@asinghvi17 asinghvi17 May 23, 2025

Choose a reason for hiding this comment

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

inherit(:palette, wong_colors()) ish should do it, I just don't know what the sequence of keys is in the palette to get to the colors of lines. Maybe inherit((:palette, :colors), wong_colors())? I can't remember if I added this syntax though or what the palette looks like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Work in progress
Development

Successfully merging this pull request may close these issues.

Series doesn't use Wong colors
2 participants