Questions tagged [gnuplot]

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

Filter by
Sorted by
Tagged with
22 votes
4 answers
31k views

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 ...
Anna's user avatar
  • 263
13 votes
3 answers
6k views

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:...
Amelio Vazquez-Reina's user avatar
11 votes
1 answer
42k views

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?
Joseph Turian's user avatar
11 votes
1 answer
48k views

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 ...
Pedro's user avatar
  • 111
9 votes
4 answers
17k views

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....
kipgon's user avatar
  • 191
9 votes
2 answers
41k views

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 ...
Zay's user avatar
  • 191
8 votes
2 answers
11k views

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 ...
Juanjo Conti's user avatar
7 votes
2 answers
36k views

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).
user avatar
7 votes
1 answer
19k views

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' ...
Martin Thoma's user avatar
  • 3,434
7 votes
2 answers
18k views

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....
Danilo's user avatar
  • 81
7 votes
1 answer
1k views

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 ...
Benjamin Horowitz's user avatar
6 votes
2 answers
903 views

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. ...
wnrph's user avatar
  • 3,675
4 votes
2 answers
16k views

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.
computerSPro's user avatar
4 votes
2 answers
2k views

How can I split the wedges of a pie chart to show extra information per wedge in consecutive rings?

I'm plotting disk partitioning and available space. I have a pie chart showing the partitioning: e.g. 30% /, 70% /home. In the second ring I want to show that 90% / is full, 10% of / is empty. 10% /...
Dima's user avatar
  • 12
4 votes
1 answer
9k views

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 ...
Andrew Wood's user avatar
  • 1,289
4 votes
1 answer
1k views

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 ...
Savvas Radevic's user avatar
4 votes
1 answer
458 views

gnuplot abbreviation reference

Where are the gnuplot abbreviations specifically documented? For example:- the single letter "l" command. > help l gives a big list and does not identify what the single letter "L" command is ...
mjp's user avatar
  • 61
4 votes
1 answer
4k views

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. ...
Gabriele's user avatar
  • 153
4 votes
1 answer
3k views

How to make gnuplots fullscreen?

How can I make gnuplot plot its plots in full-screen instead of a small window?
Anna's user avatar
  • 263
4 votes
1 answer
2k views

How to plot column in unix in one line

I would like to plot a column of data output by a script in unix in just one line. For example, something like script | cut -f2 -d ',' | gnuplot ....
user196711's user avatar
3 votes
1 answer
1k views

Looking for a graph program for time series

I want to find software (Windows or Linux) that can create time based graphs with the following wishes. Can you suggest which programs come closest to my wishes? Whishlist: The x-axis has to display ...
Jorisslob's user avatar
3 votes
3 answers
24k views

Execute gnuplot from cmd

I need to execute gnuplot from the Windows cmd, however, when I type in gnuplot, I get the error: “gnuplot” is not recognized as an internal or external command, operable program or batch file. ...
codeaviator's user avatar
3 votes
2 answers
2k views

Installing gnuplot from MacPorts failed (Checksum Mismacth)

I have OSX 10.5 and tried to sudo port install gnuplot, only to get this: ---> Computing dependencies for gnuplot ---> Verifying checksum(s) for gnuplot Error: Checksum (md5) mismatch for ...
Jason S's user avatar
  • 7,665
3 votes
1 answer
1k views

How to use mathematical functions not built-in in gnuplot

I've always considered gnuplot as very useful, and even more since I use tikz in LATEX documents. Unfortunately, the number of core implemented functions in gnuplot is quite small, I often need ...
Tom-Tom's user avatar
  • 143
3 votes
2 answers
4k views

Software GNUPlot not launching from GNU Octave

I'm trying to launch GNUPlot from Octave, but when I do I get the following error: octave-3.4.0:3> plot(x,y) dyld: Library not loaded: /usr/X11/lib/libfreetype.6.dylib Referenced from: /usr/X11/...
Max Tagher's user avatar
3 votes
2 answers
2k views

How to plot data for several signals, one above the other?

Following this question. How can I command gnuplot to draw this plot: (from the bottommost example on this page). I guess I need to do something similar to what is being done here. But what ...
Igor's user avatar
  • 223
3 votes
2 answers
670 views

Plot the area between two curves

I have a function with a parameter z similar to the above one: y = sin(x+z) How can I plot the values of y as a function of x and all the possible values of z in the [0.1, +0.1]? I want to graphic ...
Luís Marques's user avatar
3 votes
3 answers
2k views

Start an interactive session in gnuplot and execute some commands when it opens

When I execute my script, it should Open a terminal with gnuplot (interactive session) Execute some gnuplot commands. The interactive session stays open. (user can execute commands) I've tried the -...
Gilles Castel's user avatar
3 votes
1 answer
5k views

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, ...
D. Guedes-Sobrinho's user avatar
3 votes
1 answer
6k views

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 ...
CatThatKilledCuriosity's user avatar
3 votes
1 answer
76 views

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 ...
Bo Sundman's user avatar
3 votes
1 answer
922 views

How do I use gnuplot to create a 3d phase-space plot?

Have a look at this webpage - enclosed but not encrypted For a three-dimensional phase-space plot, the sequence a, b, c, d, e, f, etc. can be used as space coordinates (a-b, b-c, c-d), (b-c, c-d, ...
jecniencikn's user avatar
3 votes
0 answers
132 views

Notepad++: Edited and saved gnuplot script is not read properly

When editing and saving a gnuplot script in Notepad++ (on Windows, obviously) and then immidiatly executing it, I almost always get error messages about crazy syntax errors that don't exist in the ...
Matthias vom Bruch's user avatar
3 votes
1 answer
7k views

Specifically define colors of bars in histogram

See updated question below!: (1 Old stuff) I have the following code: clear reset unset key # Make the x axis labels easier to read. set xtics rotate out # Select histogram data set style data ...
Michael's user avatar
  • 143
2 votes
2 answers
10k views

How to set axis same in length in gnuplot

I am making a map with gnuplot. But, I find that the length of X axis is not equal with the Y axis. For example, the length of X from 0 to 10 is 20 pixels while 15 pixels in Y axis from 1 to 10. Can I ...
HXGuo's user avatar
  • 607
2 votes
1 answer
8k views

Wrap title in Gnuplot

It's all in the subject. I use a (long) line from the data file as a title, and Gnuplot doesn't wrap it. I don't know the contents of the line in advance, so I don't know how I can just insert a \n. ...
ExpertNoob's user avatar
2 votes
2 answers
3k views

Creating new data in a table and do a fit

I want to do the following: I have a data set following a Gaussian line shape, but there are some data which is strongly deviating. For the resulting fit these data points should not be included. So ...
Mattes's user avatar
  • 21
2 votes
2 answers
2k views

Plot custom log data on GNU/Linux

I'm logging some data relative to clients NFS usage over a network. Now I want to plot it on a lines diagram, and I'm overwhelmed by the possibilities I'm finding out there. No one seems to be easy to ...
Jorge Suárez de Lis's user avatar
2 votes
1 answer
34k views

Is there a way to show only specific values in x-axis of an excel chart?

In my problem, I have 0.1 0.2 0.5 1.0 on the x-axis and I want to plot my chart by showing only these values on the horizontal-axis. Is there anyway or any extension (like kutools) to make this happen ...
stack me's user avatar
2 votes
2 answers
2k views

Plotting function defined in a piecewise manner with Gnuplot

I’d like to plot some function f(x) where f(x) = x for 0 ≤ x ≤ a, and −2 otherwise. And I’d like to plot it on a graph with x axes between two arbitrary points. How would I go about doing this with ...
Squidly's user avatar
  • 610
2 votes
2 answers
8k views

How can I create a pie-chart with gnuplot?

I want to create a pie-chart. Is that possible with gnuplot and how to realize that?
Mnementh's user avatar
  • 946
2 votes
1 answer
250 views

How can I install gnuplot from this point?

When I try to install gnuplot from this website, and I extract the .tar.gz file twice, I see the following: How do I install gnuplot from this point? Also, where is the 'bin' folder? (As the bin-...
Faceb Faceb's user avatar
2 votes
1 answer
2k views

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's user avatar
  • 23
2 votes
1 answer
817 views

Scale patterns in Gnuplot (without resizing the whole output)

I want to create a plot with the eps terminal using patterns to fill the area between some curves, for example using these commands: set terminal eps size 4, 4 set output "plot.eps" plot x**2 with ...
Wrzlprmft's user avatar
  • 2,813
2 votes
2 answers
670 views

gnuplot - operating on a two digit column

I'm trying to operate on a column prior to its plotting. This is the line I'm having issues with: plot campo1 u 1:($22*0.05) where campo1 is the path to the file. The problem is that gnuplot ...
Gabriel's user avatar
  • 558
2 votes
1 answer
2k views

GNUPlot - Contour Plot Without Isolines?

I want to know how to do a contour plot of a 3D-dataset, but without the isolines. The closest to what I'm looking for that I've seen are heat maps, but that requires your data to be in the form of a ...
Arturo don Juan's user avatar
2 votes
1 answer
3k views

Automatically open a file when gnuplot starts on Windows

I would like to assign gnuplot to .gnuplot files (gnuplot scripts) on Windows 8.1, in such a way that the gnuplot environment starts with the script file loaded. For this I would need to pass the ...
François Beaune's user avatar
2 votes
2 answers
2k views

Making system calls to bash from gnuplot scripts in Ubuntu based distros

My question is: How can I change the default shell of gnuplot? I want to change it in order to send stdout to bash. This should be pretty easy, but I'm giving up. Here's why. I'm running gnuplot ver....
aaguirre's user avatar
  • 131
2 votes
2 answers
1k views

Plotting timedata in gnuplot

I have a log file (auth.log) where non-relevant lines has been removed. I wish to aggregate lines per hour/day into the plot, meaning that each line that is within the same hour or day is aggregated ...
Mogget's user avatar
  • 1,325
2 votes
1 answer
4k views

Gnuplot GUI for Ubuntu 10.10

Is there a Gnuplot GUI (equivalent to wgnuplot.exe) for Ubuntu ?
Jakub Czaplicki's user avatar