title: In matplotlib, how to change the linewidth of the axis grid using mplstyle sheet?
body: <p>For the following example:</p>
  <pre class="lang-py prettyprint-override"><code>df = pd.DataFrame(np.random.randint(0, 10, (5, 5)), columns=list(&quot;abcde&quot;))
  df = df.apply(lambda x: x.div(x.sum()).mul(100), axis=0)
  
  fig, ax = plt.subplots(figsize=(10, 4))
  df.T.plot.barh(
      stacked=True,
      ax=ax,
  )
  [ax.spines[x].set_visible(False) for x in ax.spines]
  
  ax.grid()
  </code></pre>
  <p>which look as:</p>
  <p><a href="https://i.stack.imgur.com/yt0hk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yt0hk.png" alt="enter image description here" /></a></p>
  <p>I'd like to be able to adjust the gridlines so that they're flush with the right side of the plot as they are with the left.</p>
  <p>Here they're beyond the bars:</p>
  <p><a href="https://i.stack.imgur.com/kWl5q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kWl5q.png" alt="enter image description here" /></a></p>
  <p>Here they're flush:</p>
  <p><a href="https://i.stack.imgur.com/en7gB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/en7gB.png" alt="enter image description here" /></a></p>