DistrictDataLabs / yellowbrick

Visual analysis and diagnostic tools to facilitate machine learning model selection.
http://www.scikit-yb.org/
Apache License 2.0
4.29k stars 559 forks source link

Matplotlib warning about color usage in Datasaurus #1299

Closed lwgray closed 1 year ago

lwgray commented 1 year ago

Describe the bug the datasaurus function used to demonstrate Anscombe's quartet is isssuiing the following warning

WARNING:matplotlib.axes._axes: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 2D array with a single row if you intend to specify the same RGB or RGBA value for all points.

To Reproduce

from yellowbrick import datasaurus
datasaurus()

Dataset

Expected behavior Produce the image without warnings

Desktop (please complete the following information):