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:

(from the Stack Overflow tag wiki)

103 questions
33
votes
3 answers

How to keep gnuplot-x11 graph window open until manually closed?

For example, this keeps the gnuplot-x11 graph window open until a key is pressed: gnuplot -e "plot \"file\" ; pause -1 \"text\"" How to keep it open until manually closed?
ncomputers
  • 1,496
  • 1
  • 11
  • 23
11
votes
2 answers

How to plot graph from a text file values using gnuplot?

How to plot a graph from text file values? The text file look like below: location count1 count2 HZ 100 193 ES 514 289 FP 70 137 BH 31 187 I want to plot these values as a graph in shell…
manu
  • 111
  • 1
  • 1
  • 3
11
votes
3 answers

automate gnuplot plotting with bash

I have 6 files which need to be plotted as line graphs with error margins and output them to different png files. The file format is as follows. seconds mean-average min max How would I go about plotting these graphs automatically? So I run a file…
Mintuz
  • 265
  • 1
  • 2
  • 5
9
votes
1 answer

gnuplot figure-precision

I want to make a scatterplot with Gnuplot of these data (1st column as x-coordinates): 2015.493379 5 2015.505479 5 2015.513699 25 2015.530137 25 2015.532877 20 2015.543836 5 2015.552055 5 2015.554795 10 2015.563014 15 2015.565753 15…
JoVe
  • 145
  • 2
  • 9
8
votes
1 answer

GNUplot--Change steps of yrange

I'm learning GNUplot. I need to change steps in which Y values increase while plotting my graph.xrange command will change range but steps. Ex. I have data like this 1 1000 2 1500 3 1 4 200 ... By default GNUplot is taking Y range as[0,5000] which…
user997704
  • 333
  • 2
  • 3
  • 11
6
votes
1 answer

gnuplot shell variable substitution and arrays

I need to use shell variables in my gnuplot commands, for which I'm using the here document style. I also need to use loops inside the gnuplot code. Both these things are working. Now -- I want to use a gnuplot for loop's index to access a shell…
fhussain
  • 61
  • 1
  • 3
4
votes
1 answer

how to show gnuplot timeseries graph from log of changes

I have an application that produce log like that: 14:48:16, 41.0 14:50:01, 40.0 14:54:01, 41.0 14:54:04, 40.0 14:55:10, 41.0 14:55:22, 40.0 15:00:13, 41.0 ... It is current time and the measured temperature. The application writes a line to the log…
Zaboj Campula
  • 1,116
  • 3
  • 15
  • 30
4
votes
0 answers

gnuplot, format axis with constant power of 10

I am trying to make a plot with values on the x axis ranging from 0 to 2 ms. I want to show a tick every .1 ms, with the labels going from 0.0, 0.1, ... up to 1.9, 2.0. I don't want to show the power at each tick, because I label the axis in ms, not…
MTV DNA
  • 141
  • 2
4
votes
2 answers

Plotting in gnuplot

I have a set of data in a text file (X,Y coordinates which are not sorted). I want to plot it using gnuplot and connect plotted points using lines. I tried: plot "a.txt" with lines but it is connecting the first point to the second point and so…
user997704
  • 333
  • 2
  • 3
  • 11
4
votes
1 answer

How to get rid of unnecessary lines in gnuplot

So using gnuplot, and my code looks like this: set isosamples 40 unset key set title "Radial Matrix Elements" set xrange [1:15] set yrange [1:15] set xlabel "n1*" set ylabel "n2*" set zlabel 'R' splot 's1p.pun' u 1:2:4 with lines set view 135,135…
user72453
  • 41
  • 2
3
votes
1 answer

gnuplot lost the plot

I'm experimenting with evolutionary algorithms and I have written two text files that I cannot get the plot. Based on the information on google, I think I have the format correct. (generation-number) (tab) (best-fitness) for example: 1 231 2 …
3
votes
1 answer

gnuplot y1 y2 common zero

Is there an easy way to make gnuplot automatically show y1=0 and y2=0 at the same height in the image while the y1 and y2 axes have different scales? The only way I am aware is to make sure the proportional distance from zero on the high and low…
3
votes
1 answer

Unicode in Gnuplot terminal

E.g., on the bash command line I can type a δ character using the Compose key and an ad hoc ~/.XCompose file, but if I try to do the same in Gnuplot what I get is 13:48 boffi@debian:~ $ δ bash: δ: command not found 13:48 boffi@debian:~ $ gnuplot …
gboffi
  • 1,220
  • 1
  • 14
  • 30
3
votes
1 answer

gnuplot: Control the size of circles in a scatter chart

I need to produce a scatter chart from a two-column comma-separated text file: gnuplot> set style fill transparent solid .5 noborder gnuplot> plot "corr.csv" using 0:1 with circles lc rgb "blue" Here is the output: However I want something like…
sci9
  • 517
  • 2
  • 7
  • 19
3
votes
1 answer

Closing many gnuplot -persist windows

I just opened more than a hundred persistent graphing windows using gnuplot -persist with x11 on a RHEL desktop. Is there any easy way to close them all? I don't really want to logout/in or click through them manually.
nbren12
  • 131
  • 1
  • 2
1
2 3 4 5 6 7