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

Scatter function markercolor gives warning on (R,G,B) #2

Open
Mitchellpkt opened this issue Mar 28, 2021 · 3 comments
Open

Scatter function markercolor gives warning on (R,G,B) #2

Mitchellpkt opened this issue Mar 28, 2021 · 3 comments

Comments

@Mitchellpkt
Copy link
Owner

image

*c* argument looks like a single numeric RGB or RGBA sequence, which should be avoided as value-mapping will have precedence in case its length matches with *x* & *y*. Please use the *color* keyword-argument or provide a 2-D array with a single row if you intend to specify the same RGB or RGBA value for all points.

@Mitchellpkt
Copy link
Owner Author

The warning goes away if using an array instead

firo_red = (155/256, 28/256, 46/256)
firo_red_array = np.array([firo_red])

@Mitchellpkt
Copy link
Owner Author

It depends on whether you specify as c or color. One of the last parameter handling kinks that needs to be worked out

@Mitchellpkt
Copy link
Owner Author

(by setdefaulting)

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

1 participant