Skip to content
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

clone slices to loosen reference #324

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

Conversation

bakito
Copy link

@bakito bakito commented May 2, 2023

I multiple plots are used as in the demo, the line colors can not be configured separately.
The reason is that the color slice from the template StandardColors are reuses and handed over by reference.

When the color is changed in one plot, then the slice in the other plot is also changed, hence, all lines with the same index have the same color.

This PR clones the color and style slice to get rid of this reference allowing to have different colors in different graphs.

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.

1 participant