title: Decision boundary for linear kernel(svm) is wrong
body: <p>Why my decision line is not correctly represented in a graph, for the linear classification with svm</p>
  <pre><code>
  w = clf.coef_[0]
  
  
  a = -w[0] / w[1]
  
  
  XX = np.linspace(10, 30)
  
  yy = a * XX - clf.intercept_[0] / w[1]
  
  
  plt.plot(XX, yy, 'k-')
  
  
  plt.scatter(X_train[:, 0], X_train[:, 1], c=y_train)
  plt.legend()
  plt.show()
  </code></pre>
  <p><a href="https://i.stack.imgur.com/nPjYR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nPjYR.png" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/m2OWD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m2OWD.png" alt="enter image description here" /></a></p>