title: Texts being cut of plot - Matplotlib / Python
body: <p>I am plotting a simple boxplots  with the following code, but as can be seen in the result, some words are cut of the image. How can I solve this?</p>
  
  <pre><code>def generate_data_boxplots(data, ticks, x_axis_label, y_axis_label, file_path):
      """
      Plot multiple data boxplots in parallel
      :param data : a set of data to be plotted
      :param x_axis_label : the x axis label of the data
      :param y_axis_label : the y axis label of the data
      :param file_path : the path where the output will be save
      """
      plt.figure()
      bp = plt.boxplot(data, sym='r+')
      plt.xticks(numpy.arange(1, len(ticks)+1), ticks, rotation=15)
      plt.xlabel(x_axis_label)
      plt.ylabel(y_axis_label)
  
      # Overplot the sample averages, with horizontal alignment in the center of each box
      for i in range(len(data)):
          med = bp['medians'][i]
          plt.plot([numpy.average(med.get_xdata())], [numpy.average(data[i])], color='w', marker='s',
                   markeredgecolor='k')
      plt.savefig(file_path + '.png')
      plt.close()
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/l9EmK.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/4Z3st.png" alt="enter image description here"></p>