ziulfer
ziulfer

Reputation: 1369

How to have Gnuplot automatically updating .eps figures on mac?

Once I edit and run my gnuplot scripts on Ubuntu and I have my .eps figure open, I can see the new figure updated. However, on Mac OSx I have to close and open the file, to see the updated figure. How to see the updated figures once I run the edited script?

Upvotes: 1

Views: 529

Answers (2)

ziulfer
ziulfer

Reputation: 1369

I'm using Preview. I got the point. As @andyras explained Preview converts .eps to .pdf before open the file, and that's the problem. So, I've just created a small script that runs my gnuplot script, converts the .eps to .pdf and open the pdf file with Preview, that simple. Running this script instead of the gnuplot script, I have the .eps 'automatically' updated.

    gnuplot plot
    epstopdf Structures.eps 
    open  Structures.pdf

Upvotes: 0

andyras
andyras

Reputation: 15920

On Mac the problem is that Preview converts .eps to .pdf before displaying, and this process gets in the way of Preview watching the file.

I like the Skim tool for viewing .eps that I generate with gnuplot or latex. It will prompt you the first time the file changes if you want to follow it.

Another (less than ideal on Mac) workaround is to open the file in gv, and select the option State > Watch file.

I would love to hear about tools in OS X that do this automatically...

Upvotes: 1

Related Questions