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
23
votes
3 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
  • 273
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 \ …
12
votes
1 answer

How do I divide one column in gnuplot?

I have gnuplot data file. I would like to plot it, but divide every value in the x-axis by n. Can I do this from within gnuplot, or do I have to rewrite the data file?
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
  • 1
  • 1
  • 2
9
votes
4 answers

Trouble with readline library on mac

I was updating some programs on my mac and I suddenly encountered some troubles running gnuplot. The error was something like : dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib Referenced from: .../something/... Reason:…
kipgon
  • 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,604
  • 10
  • 36
  • 65
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
6
votes
2 answers

Which gnuplot terminal type should I use in org-babel-gnuplot with latex export

All gnuplot examples on http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.html use the png terminal. However, when exporting to latex I'd rather like to generate vector graphics. Latex terminal seems to be outdated. Eps does not…
wnrph
  • 3,715
  • 1
  • 28
  • 39
4
votes
2 answers

Plot .gnu file with gnuplot

I have a file with .gnu extension.It contains gnuplot commands. I want to show up the graph, using gnuplot. So, which command is right for this.
4
votes
1 answer

How can I graph memory usage by user?

Basically, I want to graph the memory usage with each username as title, as time passes by. I would set that script as a cron job, to create a graph that shows memory usage of certain usernames. How can I graph percentage of memory consumption based…
4
votes
1 answer

How to make gnuplots fullscreen?

How can I make gnuplot plot its plots in full-screen instead of a small window?
Anna
  • 273
1
2 3 4 5 6 7