Matplotlib rendering to Cairo now works. Still some issues with border cutoffs.