Skip to content

clone slices to loosen reference#324

Open
bakito wants to merge 2 commits intogizak:masterfrom
bakito:clone-slices
Open

clone slices to loosen reference#324
bakito wants to merge 2 commits intogizak:masterfrom
bakito:clone-slices

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