title: Changing the border width of a plot
body: <p>I have a script to create an easy plot, but I would like to change the border width because it is a little bit transparent. How can I do this?
  With images is clearer the my problem</p>
  <pre><code>df_stats
  import matplotlib.pyplot as plt
  import numpy as np
  plt.figure()
  ax = plt.axes()
  
  # Increase the plot size and font size.
  plt.rcParams[&quot;figure.figsize&quot;] = (300,200)
  plt.title(&quot;Training &amp; Validation Loss&quot;,fontsize=500)
  plt.xlabel(&quot;Epoch&quot;, fontsize=500)
  plt.ylabel(&quot;Loss&quot;, fontsize=500)
  plt.xticks(list(np.arange(0, 30, 5)))
  plt.xticks(fontsize=500)
  plt.yticks(fontsize=500)
  plt.plot(df_stats['Training Loss'], color='b', marker='.', linestyle='solid', mec='b', markersize=200, markerfacecolor='white', label=&quot;Training&quot;, linewidth=80)
  plt.plot(df_stats['Valid. Loss'], color='g', marker='.', linestyle='solid',  mec='b', markersize=200, markerfacecolor='white',label=&quot;Validation&quot;, linewidth=80)
  plt.grid(True, color='black', linestyle='dashed', linewidth=10, axis='x')
  plt.grid(True, color='black', linestyle='dashed', linewidth=10, axis='y')  
  plt.legend(fontsize=500, edgecolor='black')
  </code></pre>
  <p><a href="https://i.stack.imgur.com/nT3kv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nT3kv.png" alt="result" /></a>
  <a href="https://i.stack.imgur.com/jJsAS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jJsAS.png" alt="more visible the box of the plot" /></a></p>