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

set_palette caused error #99

Closed
bgkillas opened this issue Mar 22, 2024 · 1 comment
Closed

set_palette caused error #99

bgkillas opened this issue Mar 22, 2024 · 1 comment

Comments

@bgkillas
Copy link

been trying to get domain coloring and noticed that
.set_palette(PaletteType::Custom(&[(1.0, 1.0, 1.0, 1.0)]))
fails with

gnuplot> set palette defined (1.000000000000e0 1.000000000000e0 1.000000000000e0 1.000000000000e0)
                                                                                                 ^
         line 0: invalid palette syntax
@SiegeLord
Copy link
Owner

Thanks for reporting! You need at least two palette entries. The documentation/internal correctness check was wrong.

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

No branches or pull requests

2 participants