title: coefficient plot in python
body: <p>I am trying to find a nice way to plot the linear model coefficient in python and I got the following:</p>
  
  <pre><code>import statsmodels.formula.api as sm
  import seaborn as sns
  import matplotlib as mpl
  import matplotlib.pyplot as plt
  
  f = 'change ~ close_r + close_f + close_f1 + close_f2 + gender + age + country_of_citizenship + country_of_origin + religion +ethnicity'
  reg_results = sm.ols(f, data=data).fit().summary()
  
  sns.set(style="ticks") 
  mpl.rc("figure", figsize=(10, 15))
  
  sns.coefplot(f,data,intercept=False);
  </code></pre>
  
  <p>which produces the following ugly plot (you can't see the x axis labels). </p>
  
  <p><img src="https://i.stack.imgur.com/6y9mM.png" alt="enter image description here"></p>
  
  <p>How can I rotate the plot to make it vertical (i.e., the swap the y and x axis in order to see the labels)? and how can I add custom tick names for the coefficients (other than the default names from the dataframe)?</p>
  
  <p>I am open to alternative solutions/type of plots as well. </p>