Sometimes you export from matplotlib and your content is overflowing the side of your PDF. In order to adjust this, you need to resize the art board.

Resizing the art board (the graphic’s background)

  1. On the tool menu near the bottom there’s an Artboard Tool (pictured above). Click it or press Shift+O.
  2. Use the handles to adjust the size of the art board so it surrounds your content.