I like to use matplotlib to create a PDF and then I will often go in and tweak things with Adobe Illustrator or Inkscape. Unfortunately, when matplotlib saves the figure as a PDF, it combines multiple images into a single object.
For example, the following code
import matplotlib.pyplot as plt
import numpy as np
im = np.random.rand(10, 10) * 255.0
fig = plt.figure()
ax = fig.add_axes([0.1,0.1,0.8,0.8])
ax.imshow(im, extent = [0,10,0,10])
ax.imshow(im, extent = [12,22,0,10])
ax.set_xlim(-2,24)
fig.savefig('images_get_combined.pdf')
creates the following PDF (after I manually converted to a PNG, so I could post it here)
When I open images_get_combined.pdf in Adobe Illustrator, both images are combined into a single image. I cannot move one image relative to the other.
I tried to get around this problem using BboxImage, but as shown in this bug report, BboxImage doesn't play nice with the PDF backend. Perhaps the PDF backend with BboxImage bug will get resolved, but I wondered if there is another way to make the PDF backend save each image separately.