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

Info/warning after giving a color vector to scatter #1717

Closed
carranco-sga opened this issue Sep 3, 2018 · 2 comments
Closed

Info/warning after giving a color vector to scatter #1717

carranco-sga opened this issue Sep 3, 2018 · 2 comments

Comments

@carranco-sga
Copy link

Greetings,

I recently upgraded to Julia 0.7 and when trying to plot a set of points with each dot a seperate color with colors specified by a color vector, I keep getting the following warning:

┌ Info: it is surprising that this function is called - please report a use case as a Plots issue
└ @ Plots /home/carranco.sga/.julia/packages/Plots/ex9On/src/args.jl:1525

I managed to isolate the warning to the usage of the color keyword argument with a color vector. A working example is the following:

#using Colors
#scheme = colormap("Blues", 10)

using Plots

scheme = [:red, :blue, :black]
scatter(1:10, c = scheme, legend = false)

I have tried to update and reinstall Plots with no success. The plot is fine, albeit with that warning. The warning occurs even when when specifying the colors by hand.

Thanks in advance.

@mkborregaard
Copy link
Member

Thanks - the warning is spurious, and has been taken out on current releases - I should backport a fix to 0.7 so it doesn't show up there.

@carranco-sga
Copy link
Author

Thanks!

@t-bltg t-bltg closed this as completed Sep 25, 2021
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

3 participants