python 3 scatter plot gives "ValueError: Masked arrays must be 1-D" even though i am not using any masked array : <p>I am trying to plot a scatter plot using the .scatter method below. Here</p>

<p><code>ax.scatter(X[:,0], X[:,1], c = colors, marker = 'o', s=80, edgecolors = 'none')</code></p>

<p>with the input/args classes below:</p>

<p><code>X[:,0]] type:  &lt;class 'numpy.matrixlib.defmatrix.matrix'&gt;
X[:,1]] type:  &lt;class 'numpy.matrixlib.defmatrix.matrix'&gt;
colors type:  &lt;class 'list'&gt;</code></p>

<p>however python is throwing a value error as seen here:
<a href="https://i.stack.imgur.com/rGG61.png" rel="noreferrer">error image</a></p>
