Created
February 9, 2015 07:42
-
-
Save masa-anekawa/4fee134186095a45b1ee to your computer and use it in GitHub Desktop.
plot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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