1.194 FAQ-911 How to keep the graph legends position/size when export graph as vector formats (PDF, EPS, EMF)

Last Update: 1/11/2018

After export your graph as vector formats (PDF, EPS, EMF) and you find the position or size of legend in the exported image is not same as the graph in Origin, that maybe because the exported image DPI Resolution is different from the graph page in Origin.

To keep the exported graph legends position/size:

  1. Check your graph page resolution in Origin.
    Copy following script in the Script Window (Windows:Script Window...). Highlight it and press Enter key. Then it will output the graph page horizontal resolution value.
    page.resx=;
    • Export the image with the same resolution of your graph page:
      Select File: Export Graph to open the dialog, and expand Export Setting: Advanced node. Set Resolution to the value that output in the last step.
    • or

    • Reset your graph page resolution the same as the default setting in the Export Graph dialog.
      In Export Graph dialog, the default resolution is 300. (You can check it when you select File: Export Graph to open the dialog.) Copy following script in the Script Window and highlight it and press Enter key. Then export your graph by default setting.
      page.resx=300;

Keywords:Legend size, Legend position, PDF, EPS, EMF, vector formats, export graph, DPI, Resolution