Questions tagged [gnuplot]

Gnuplot is a portable command-line driven graphing utility for Linux, OS/2, MS Windows, OSX, VMS, and many other platforms.

Gnuplot is a command-line driven plotting engine that runs on all major operating systems (Windows, GNU/Linux, OSX, etc.). Its initial release dates back to 1986 and it is still being actively developed. The program is written in C and is released under a custom open source license.

There is no graphical user interface contained in the official release, but several external ones are available (e.g. wgnuplot, xgfe, PlotDrop,...). Additionally there are interfaces available for multiple programming languages such as C, C++, Python, Fortran and Perl (see more information in links below). There are several software suites that use Gnuplot as plotting device. Amongst them are GNU Octave, Maxima and gretl. Mostly however, Gnuplot is used via scripts which automate the task of generating graphics. The output can be in various, either vector or raster, formats.

Gnuplot is a powerful tool as it allows the customization of nearly every parameter of the plot. Additionally, LaTeX is supported, which means that labels can use LaTeX typesetting and that the plot can be saved as LaTeX file.

Links:

98 questions
22
votes
4 answers

In gnuplot, how to plot with lines but skip missing data points?

I've got a value associated to each day, as such: 120530 70.1 120531 69.0 120601 69.2 120602 69.5 # and so on for 200 lines When plotting this data in gnuplot with lines, the data points are nicely connected. Unfortunately, at places…
Anna
  • 263
13
votes
3 answers

Looking up gnuplot abbreviations

I'm new to gnuplot. I am reading the manual but am having a hard time finding explanations for some of the abbreviations people use in their scripts. For example, I am working with an script that says: f(x)=invnorm(x) g(x)=norm(x) plot \ …
11
votes
1 answer

create a smooth surface using x,y,z data gnuplot

I have a file which contains x,y,z data. Actually, the data is: x = latitude y = longitude z= Depth I want to create a smooth surface but I have no idea how to do it. Could anybody give me some hints to do it? UPDATE So, the data looks like the next…
Pedro
  • 111
9
votes
2 answers

How to connect points with curves in gnuplot

I have some data that I want to connect them with smooth curves. I do not want lines. I am attaching some points below. Instead of lines, I want to have a curve. Can anyone tell me how to do this in gnuplot? -111 -0.07 -24 0.09 62 …
Zay
  • 191
8
votes
2 answers

How to plot dot labeled data?

I'd like to turn a file like: Name X Y a 1 2 b 4 1 s 3 3 in a X-Y graphic with the X-Y dots labeled with Name. How can I do it? I think this can be done with gnuplot, but I wasn't able to do it yet.
7
votes
2 answers

How to plot data with lines and label in each point?

I have an archive "curva-l" with the data: 2.308E-05 5.397E-01 1.0E-09 2.318E-05 5.224E-01 1.0E-08 2.426E-05 5.029E-01 1.0E-07 4.012E-05 4.718E-01 1.0E-06 1.311E-04 4.155E-01 1.0E-05 3.751E-04 3.703E-01 …
Danilo
  • 81
7
votes
1 answer

Plotting Pairs of Ordered Pairs in Gnuplot

If I have a data file with 4 columns: x1, y1, x2, y2, How can plot a line connecting (x1, y1) to (x2, y2) for each element (row)? I assume it is pretty easy, but I have been playing around for an hour unsuccessfully.
7
votes
1 answer

How do I define a function in parts for plotting?

I use gnuplot for plotting functions. This is my script at the moment: set terminal png xffffff x222222 set output "Ausgleichszahlungen.png" set title "Ausgleichszahlungen" set xlabel 'F_MZ / A_MZ' set ylabel 'Faktor F' set xrange [0.5:1] set yrange…
Martin Thoma
  • 3,434
7
votes
2 answers

Specifically marking a point in gnuplot

suppose I want to plot a graph and I want to show on the graph some important points. How do I do this in gnuplot? For example, in the graph of y = x2, I want to show (2,4) and (4,16).
finemann
4
votes
1 answer

Plotting Error Bars with GNUPLOT

I can't get gnuplot to make a plot with error bars when my x values are non-numeric. For an example "data.dat": day col1 col2 MONDAY 12 4 TUESDAY 10 3 WEDNESDAY 9 2 THURSDAY 11 3 FRIDAY 9 2 SATURDAY 12 …
Andrew Wood
  • 1,289
4
votes
1 answer

Installing Cairo terminals in Gnuplot (Ubuntu)

I didn't find the "cairo" terminals installed with Gnuplot downloaded from the project site: they aren't listed after set terminal. How do I install it? I can't find any instructions on the internet. (For example I need to use pngcairo and…
Gabriele
  • 153
  • 1
  • 10
3
votes
1 answer

Plotting multiple xy pairs in Gnuplot from file

I have a data series that I'm trying to plot in Gnuplot of the format: x1, y1, x2, y2 ... xn, yn Where every two adjacent columns represent an xy pair. I'm looking for a way to plot each of these xy pairs as separate lines using a single…
3
votes
1 answer

GNUPLOT command syntax

I have used GNUPLOT a few years from from my own software and I am increasingly impressed by its flexibility and power. One case I want to plot is several columns from a table generated by my software and earlier I used: plot '-' using 1:2 ..., ''…
3
votes
1 answer

Gnuplot colorbar. Control of numbers steps and format

I'm trying to create a chart using Gnuplot, as shown here: My questions about it: How to control the numbers of the colorbars in Gnuplot? I want to set the number for each 2 points. For example, from 0.3, 0.5, 0.7... and so on. How to set the…
2
votes
1 answer

GNU plots_Plotting histograms from given set of values against the number of their occurances

How can we plot a histogram from a csv file containing all data into a single column. I need to plot those values vs the number of times they get repeated.
aseth
  • 23
1
2 3 4