Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

opening .gp file ...newbie user

1,863 views
Skip to first unread message

da...@artandconservation.net

unread,
Feb 28, 2018, 2:03:37 AM2/28/18
to
I recently got an important chart/info, a file with a .gp file extension. I installed Gnuplot and tried to open the said file. Being a total newbie and not familiar with coding language, I would greatly appreciate your help! I tried to search about this file extension, assuming that the file contains data or even a chart, but I may be wrong...

Karl Ratzsch

unread,
Feb 28, 2018, 2:48:25 AM2/28/18
to
Am 28.02.2018 um 08:03 schrieb da...@artandconservation.net:
> I recently got an important chart/info, a file with a .gp file extension. I installed Gnuplot and tried to open the said file. Being a total newbie and not familiar with coding language, I would greatly appreciate your help! I tried to search about this file extension, assuming that the file contains data or even a chart, but I may be wrong...
>

1. Ask the funny guy who sent you the file.
2. Ask so. else to whom you can show the actual file
3. .gp contains script to draw a graph, usually but not necessarily
WITHOUT the actual data.

da...@artandconservation.net

unread,
Feb 28, 2018, 6:11:15 AM2/28/18
to
Thank you for your reply. To be honest I also got the actual data and photo of the plot. I got the following files: png, eps, gp, csv. So I need more than one file to open the plot in Gnuplot?!

Colin Brough

unread,
Feb 28, 2018, 6:52:33 AM2/28/18
to
The likelihood is that the data is in the .csv file, the instructions
that gnuplot use to generate the plot are in the .gp file, and that
the .png and .eps files are output from gnuplot. But that's an
educated guess, not definitely true.

Information about how to actually open the .gp file using gnuplot will
vary depending on what operating system you are using - on Linux I'd
try, in a terminal window, entering the command "gnuplot FILE.gp" -
where FILE is the name of the .gp file. Oh, and make sure you have a
safe copy of the .png and .eps files in some other folder/directory,
so you don't lose anything - you say this is an important plot...!

Cheers

Colin

--

----------------------------------------------------------------------
Colin Brough Colin....@blueyonder.invalid
(Replace .invalid with .co.uk to reply)

Jörg Buchholz

unread,
Feb 28, 2018, 7:39:34 AM2/28/18
to
Have a look into the .gp file via your favored Editor. The gnuplot code
is nearly plain English, so you can see which files you need and what
gnuplot will be done.

Then first start gnuplot and load the "gnuplot-code" via

load 'your-code-file-name'

If there are errors you can see them in the gnuplot console.

Jörg

da...@artandconservation.net

unread,
Feb 28, 2018, 8:48:47 AM2/28/18
to
My system is Windows 10 64bit. So I need to download and install another program to read the gp file, which contains instructions on which files I need to open. I was told that Gnuplot is very user friendly (being ironic of course) :)

Jörg Buchholz

unread,
Feb 28, 2018, 9:28:43 AM2/28/18
to
I think on every computer is a program that can display simple ascii
text. So you don't must install every thing extra.

Jörg


Björn Lundin

unread,
Mar 1, 2018, 4:38:05 AM3/1/18
to
On 2018-02-28 14:48, da...@artandconservation.net wrote:

>>
>> Jörg
>
> My system is Windows 10 64bit.
> So I need to download and install another program to read the gp file,
No, you just need to know what to do.

> I was told that Gnuplot is very user friendly (being ironic of course) :)
It is. But introduce your win-10 to someone who has never seen a
computer before and see how user friendly that is.
It is all about your ability to take a step back and understand
that just because it is not made for windows users, it can still be
user friendly. Like when you want to script how a plot/diagram should be
created instead of point-and-click. Especially when you want create
the same kind of plot for 2000 different files...


Now, in order to see the contents, use the file explorer and drag the
file on top of an open internet explorer. (or other browser)


--
--
Björn

Dr Engelbert Buxbaum

unread,
Apr 10, 2018, 6:18:18 AM4/10/18
to
In article <d5422ba3-c6d7-404a...@googlegroups.com>,
da...@artandconservation.net says...
>
> To be honest I also got the actual data and photo of the plot. I got
> the following files: png, eps, gp, csv. So I need more than one file
> to open the plot in Gnuplot?!

The csv-file (comma-separated value) is likely an ASCII-file of the data
(https://tools.ietf.org/html/rfc4180), under windows you can open it
with spreadsheet-programs like MS Excel or Libre-Office Calc.

png (portable network graphics) and eps (encapsulated postscript) are
likely graphics files, under windows you can open them with graphics
viewers like Irfan-view (www.irfanview.com). For eps you will need in
addition a matching version (32 or 64 bit) of a postscript-interpreter
like Ghostscript https://www.ghostscript.com/). When you get
Ghostscript, get the graphical user interface Ghostview at the samne
time.

gp may be the Gnuplot-script to convert the data file into the graphics
file. You can open it with any text editior, the one that comes with
windows is perfectly fine for the time being. For routine use of Gnuplot
you will appreciate the comfort of a programming editor with Gnuplot-
mode (offering code coompletion, syntax highlighting and the like), but
for now that is not required. You can also run it through Gnuplot, of
course, to make your own graphics (make sure the graphics that came from
your friend are in a save place, where they connot be overwritten).

Except Excel, all these programs are free or even opensource. They all
come with a manual, and you have to RTFM. Once you get the hang of
Gnuplot, check http://www.phyast.pitt.edu/%Ezov1/gnuplot/html/intro.html
and http://lowrank.net/gnuplot/misc4-e.html to see how powerful it
really is.

As for user-friendly, once you understand how Gnuplot works, it is
straight-forward to get graphs quicker and of higher quality than with
any spreadsheet program I know of.

However, the biggest advantage of Gnuplot for plotting (as well as LaTeX
for typesetting) is that all data are in plain ASCII. At the time I
wrote my thesis (end '80s) most of my colleagues used a program called
'wordstar', which produced binary files just like MS-Word does today.
They would be hard pressed to open their files today, as wordstar is no
longer available. My LaTeX-documents with Gnuplot-graphics are still
fully accessible after 30 years (even though the old-fashioned syntax
produces a few warnings (LaTeX) or errors (Gnuplot)).


--
DIN EN ISO 9241-13: 9.5.3 Error messages should convey what is wrong,
what corrective actions can be taken, and the cause of the error.
0 new messages