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

[FR] Colors transition off #4

Closed
Sineos opened this issue Apr 12, 2023 · 4 comments
Closed

[FR] Colors transition off #4

Sineos opened this issue Apr 12, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@Sineos
Copy link

Sineos commented Apr 12, 2023

I'm using color_type='manual' to highlight property changes (e.g. speed) in the design. The transition between the different colors make the result look wrong.
Is there a way to have a hard cut over to a new color?

@fullcontrol-xyz
Copy link
Contributor

It's because the lines have a gradient between the point's colours. Try adding two points with different colours either directly overlapping or close to each other so this gradient appears to be instant

@Sineos
Copy link
Author

Sineos commented Apr 12, 2023

Hmm, OK, this works but I do not think that changing colors warrants cluttering the design with additional points. Unfortunate but not a deal breaker. Thanks.

@Sineos Sineos closed this as completed Apr 12, 2023
@fullcontrol-xyz
Copy link
Contributor

I made a minor correction to the code. You can now add a point with only the color attribute defined (no values of x y z entered). This suits the overall approach of FullControl to define the sequence of how things change....

  1. if you define a color change before an xyz movement, the color change happens before the line
  2. if you define a color change after an xyz movement, the color change happens after the line
  3. if you define a color change at the same time as an xyz movement, the color change happens during the line

the relevant tutorial notebook has been updated to demonstrate this

@Sineos
Copy link
Author

Sineos commented Apr 15, 2023

newplot

Works nicely. Thanks a lot!

@fullcontrol-xyz fullcontrol-xyz added the enhancement New feature or request label Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants