I have two matrices - D,c - 100x2 and 100x1 respectively. c consists of 1,-1 only. In MATLAB, I have scatter(D(c==1,1),D(c==1,2),'r');
When I try plt.scatter(D(c==1,1),D(c==1,2),c='r') for Python (imports not shown), it gives an error - 'numpy.ndarray' object is not callable.
How do I access the c indices in Python?