save figure as .pdf to insert to .tex file