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

Impl Color for f64 (+ f32, i64, i32, ...) #155

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

tectin0
Copy link
Contributor

@tectin0 tectin0 commented Aug 8, 2023

Hey there!

I noticed that someone had raised an issue regarding the removal of impl Color for f64 in a previous version (#141). I also had this issue and to be honest, I don't even know how one would use the colorscales with a scatter plot without being able to use a reference vector.

I went ahead and created a very simple pull request to reimplement it, along with impl Color for other types (f32, i64, i32, ...).

Additionally, I expanded the 3d_charts example to include a plot that showcases the now working colorscales.
I also fixed the customized_scatter3d_plot() where colorscales were not working because of this.

If there is any reason why this wouldn't just work like this please let me know.

newplot (1)

newplot (2)

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.

None yet

1 participant