title: Plot Decision Boundary for Scikit Logistic Regression with 7 Features
body: <p>I'm implementing binary logistic regression with 7 features in Python with scikit-learn, and I want to plot the decision boundary for it (preferably in Matplotlib). I've seen <a href="https://stackoverflow.com/questions/28256058/plotting-decision-boundary-of-logistic-regression">this</a> and <a href="http://scikit-learn.org/stable/auto_examples/linear_model/plot_iris_logistic.html" rel="nofollow noreferrer">this</a> and <a href="https://stackoverflow.com/questions/22294241/plotting-a-decision-boundary-separating-2-classes-using-matplotlibs-pyplot/22356267#22356267">this</a>, but none of those work for me when I try to implement them; some require me to only train the model on two features, which I would not prefer.</p>
  
  <p>Ideally, I would like to plot the boundary in both 2d and 3d,
  <img src="https://2.bp.blogspot.com/-eCQJ4j3wqw0/Tr8-bwNir1I/AAAAAAAAApg/mBLTGATfgI0/s1600/plot3.png" alt="2d"></p>
  
  <p><img src="https://i.stack.imgur.com/WrY9K.png" alt="3d"></p>
  
  <p>but either would be fine.</p>