I have seen .gnu, .plt, and .gplot as file extensions for gnuplot scripts.
I know Linux doesn’t care about file extensions, but what extension most universally declares to human beings “I am a gnuplot script!“?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As Romain, Dr. Person and neillb all point out and this wikibooks article confirms, there is no official standard extension for gnuplot files.
These three file extensions do seem popular:
Of these
.gpis shortest and seems like it would have the fewest collisions with other programs. But the other two extensions aren’t in heavy use either. It appears that.pltwas used by HPGL plotters and therefore some old Autocad files may have this extension. And files with a.gpiextension are used by Garmin GPS devices. Fwiw, googling for “gnuplot file extension gp” returns a few more results than similar searches for .gpi and .pltWhile
.gnuplotis a fair choice, it is seven characters long. Long file extensions can potentially detract from readability in the terminal because they open up the possibility of file names that are shorter than the file extension and because longer extensions are more likely to cause lines to wrap.