Skip to content

Instantly share code, notes, and snippets.

@masa-anekawa
Created February 9, 2015 07:42
Show Gist options
  • Select an option

  • Save masa-anekawa/4fee134186095a45b1ee to your computer and use it in GitHub Desktop.

Select an option

Save masa-anekawa/4fee134186095a45b1ee to your computer and use it in GitHub Desktop.
plot
plt.plot(X[0:49,1],X[0:49,2],'ro') #omega1
plt.plot(X[50:99,1],X[50:99,2],'bo')#omega2
xpl=np.linspace(-3.0,4.0,100) #superplane
ypl=-(self.W[0][0]-self.W[0][1] + (self.W[1][0]-self.W[1][1])*xpl)/(self.W[2][0]-self.W[2][1])
plt.plot(xpl,ypl, 'g')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment