Skip to main content

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
0 votes
1 answer
18 views

Plotutils / Plotfont: get specific character (HPGL) code

GNU plotfont is a simple utility that will produce a character map for any font available to the GNU plotting utilities graph, plot, pic2plot, and tek2plot, and the GNU libplot graphics library on ...
grrr's user avatar
  • 55
2 votes
1 answer
229 views

can't install gnuplot

I am using gnuplot and Rust for a project on my Linux Mint (cinnamon) PC. However once I try to display a picture I get: called `Result::unwrap()` on an `Err` value: Couldn't spawn gnuplot. Make sure ...
Beppe's user avatar
  • 23
0 votes
1 answer
75 views

How to use a bash output as a variable in gnuplot? OpenFOAM log examples

I have a log file like this: Starting time loop Courant Number mean: 0 max: 0 deltaT = 0.0012 Time = 0.0012 DILUPBiCGStab: Solving for Ux, Initial residual = 1, Final residual = 4.8276e-08, No ...
mle0312's user avatar
  • 163
0 votes
2 answers
232 views

How to pass a bash variable (list of numeric data) to gnuplot *without using a file*

I am using netcat to get a series of points which I would like to plot with gnuplot. However, I am having trouble passing the data to gnuplot without writing it to a file first. In the simplest case, ...
Sebastian's user avatar
0 votes
0 answers
42 views

Converting memory utilization data to graph in linux

I have made a bash script in which i am using sar command to get the memory utilization and than the data to .txt file on the time and the percentage utilization. Than through gnuplot trying to ...
shamsher shaikh's user avatar
1 vote
0 answers
1k views

Best way to generate pdf output from gnuplot

I have many data files in a directory. Each data file has various columns and I want vector plots using a few of them. Earlier I was generating .png files using a .gp script and combining them into a ...
damaihati's user avatar
  • 143
0 votes
1 answer
776 views

gnuplot - Histogram bars in different colors with the values on top

I have this data file (TotalDurationBarPlot.dat): Indexed list 934 Tree list 3692 Array list 12274 Linked list 48188 What I wish to achieve is a histogram chart with 4 bars: one for Indexed list, one ...
coderodde's user avatar
2 votes
2 answers
253 views

How to remove lines with nonsense format numbers?

I have the following data that I am processing to get the 1st and 5th column, convert the D format to E format and delete rows that have gibberish numbers such as 9.410-316. DEG = 1.500 2....
csnl's user avatar
  • 35
1 vote
2 answers
117 views

Gnuplot -e not working on Debian 11

E.g. the following command gnuplot -e "splot [x=-3:3] [y=-3:3] sin(x)*cos(y)" works perfectly fine on Windows 10 with GNUPLOT 5.4p5. But on my Debian Bullseye box with GNUPLOT 5.4p1 all I ...
huoneusto's user avatar
  • 131
1 vote
0 answers
108 views

gnuplot: add values above the bars

My script takes the data from the third and 5th columns of the input datafile considering only the lines where the value from the 5th column > 0.05, producing a bar graph cat <<EOS | gnuplot &...
James Starlight's user avatar
2 votes
0 answers
102 views

xmgrace: bar graph vizualisation using batch

I am using xmgrace to plot 2D bar plot from the following input data: @ title "H-bonds" @ xaxis label "Donor" @ yaxis label "Frac" @s0 line type 0 @s0 symbol linewidth 1 @...
James Starlight's user avatar
1 vote
1 answer
2k views

Bash script for plotting multiple files with Gnuplot

I want to plot several files just executing a bash script which calls Gnuplot. My idea of a possible bash script is: #!/bin/bash gnuplot plot 'my_first_file.dat' u 1:2 replot 'my_second_file.dat' u 1:...
Siderius's user avatar
2 votes
1 answer
217 views

How to change the number format in the gnuplot status bar?

I am plotting some financial data in gnuplot as candlesticks. Example of the data: 2022-04-20T00:01:00 1.07907 1.07901 1.07916 1.07907 2022-04-20T00:02:00 1.07906 1.079 1.07908 1.07907 2022-04-20T00:...
Philipp Ludwig's user avatar
1 vote
0 answers
951 views

gnuplot doesn't show plotting window on Ubuntu

I was using gnuplot in Ubuntu with wxt terminal, and when I type in plot sin(x), I get an error message: Unable to init server: Could not connect: Connection refused 23:00:40: Error: Unable to ...
Limona2000's user avatar
1 vote
1 answer
927 views

Gnuplot: What is the difference between plot '/dev/stdin' and plot '-'?

When I use '-' to plot in gnuplot from a pipeline, as follows⭐: $ seq 5 | gnuplot -e "plot '-' w lp; pause 99" it works fine, I can adjust the plot's window size, can show/hide grid without ...
Iyach tharwa nambarek's user avatar
2 votes
0 answers
163 views

improve plot scale and display

I am trying to plot some data using gnuplot My input is similar to $ go run . | tail 410ms-420ms 14260 420ms-430ms 13654 430ms-440ms 13344 440ms-450ms 13156 450ms-460ms 12829 460ms-470ms 12463 470ms-...
mh-cbon's user avatar
  • 143
0 votes
0 answers
180 views

use xgraph or gnuplot in ubuntu

I am using ns2.35 and ubuntu 18.040. I have a number of trace files and I want to compare them in terms of: delay, throughput, power consumption (awk files) .. I would like to use xgraph or gnuplot .. ...
sally's user avatar
  • 1
1 vote
1 answer
269 views

Running several Gnuplot commands in parallel with Gnu Parallel

I would like to run a list of Gnuplot commands in parallel. I'm getting an "Unrecognized option" error: $ ./parallel-plot-sine.sh | parallel -q gnuplot unrecognized option -e "set ...
EarthIsHome's user avatar
-1 votes
1 answer
71 views

Filter the data to generate the outermost points only

I have the following data, when plotted gives me the following I would like to save and plot only the outermost points with a line plot. Pls do suugest on how to proceed with this and advise on how ...
newstudent's user avatar
1 vote
1 answer
239 views

Sort the data to plot a circle

Here I have a data which I would to plot with line using Gnuplot. Using the code pl 'Sphere_ISOTEST_data.txt' w p I get below figure but, using pl 'Sphere_ISOTEST_data.txt' w l I get the following: ...
newstudent's user avatar
0 votes
0 answers
185 views

Gnuplot connect points when no value

I have below example, 1|5 2|8 3|1 6|8 7|5 8|10 With below code the chart connects between 3 and 6 x data is there a way to plot zero values between 3 and 6 x data, gnuplot << EOT set ...
ammar's user avatar
  • 87
1 vote
0 answers
223 views

Gnuplot dyld: Library not loaded: /usr/X11/lib/libXpm.4.dylib on Mac

I had a previous version of XQuartz on my Mac High Sierra 10.13.6 and I was running gnuplot (not very recent version, 4...). Then I updated XQuartz and gnuplot does not start anymore. I receive the ...
Fred's user avatar
  • 21
0 votes
2 answers
970 views

Draw border around Gnuplot points

I'm plotting point using Gnuplot as explained in this article. For example: However I want to draw a black border around each of the points. In the above example, the square, circle, and triangle ...
jviotti's user avatar
  • 421
1 vote
1 answer
224 views

gnuplot one odd xtic value display

I have created a gnu plot control file (.plt) with number of nodes 40 to 80 with gap of 10 and last value as 84. when I generate output I don't get value 84 shown in xtics. I want values from 40 to 80 ...
user3696623's user avatar
2 votes
1 answer
4k views

gnuplot setting image width with pixels for specific DPI

I need to produce image with gnuplot with following guide given width=90 mm (255 pt), pixels at 300 dpi=1063, pixels at 500 dpi=1772 , pixels at 1000 dpi=3543 How can i produce image with width=90mm ...
user3696623's user avatar
0 votes
1 answer
2k views

How to open interactive gnuplot window from a bash script

I want to plot a file using gnuplot from within a bash script. For this I used the following command: gnuplot --persist -e "plot file1.dat" It shows the plot in a window but I want to look ...
physu's user avatar
  • 201
1 vote
1 answer
1k views

gnuplot: Can you set shell variables in a script and then later call them?

I want to be able to issue shell commands from a gnuplot script, such as setting a variable, but it appears that the system command spawns a new shell instance as opposed to issuing commands to the ...
T. Zack Crawford's user avatar
0 votes
0 answers
363 views

The first character of command is being removed automatically by the shell

I have a simple shell script to copy certain data file from one directory into the current working directory and I plot this file along with another file in the working directory using gnuplot. The ...
prananna's user avatar
0 votes
1 answer
124 views

string xtic labels with yerrorbars and separate title for each row

I have a file, file.dat, that contains string and numeric xticlabels STD 0.34 0.04 0.1 0.4 0.03 0.2 0.3 0.04 0.3 0.31 0.045 Column No.1 is for xticlabels, Column 2 is for value to plot against ...
user3696623's user avatar
0 votes
1 answer
313 views

gnuplot xlabels alphanumeric and stretching x axis range

I have plotted a file containing string and numbers as x labels with following code plot "fileaskinf.dat" u 2:xticlabels(1) t "teams" The file contents are A-Team 0.05 0.5 0....
user3696623's user avatar
0 votes
0 answers
134 views

gnuplot plotting file with error bars containg strings and number in a colum as xtics

In Linux/Ubuntu i have plotted a file with 3 columns ,x, y and error bars. Now i have file with numbers and text in first column. i can i plot it with error bars with numbers and string in the label?. ...
user3696623's user avatar
1 vote
1 answer
2k views

Using bash script variable in gnuplot plot command

I want to plot a set of data stored in different files: file.txt_100K file.txt_200K file.txt_300K I came up with the following bash script: 1 #!/bin/bash 2 3 filename=file.txt_ 4 5 ...
physu's user avatar
  • 201
1 vote
1 answer
2k views

working directory in gnuplot

How do I specify the working directory for gnuplot in interactive mode? If I want to call a script with "call 'label_loop.gnu'" and do not want to put the script file in the gnuplot installation ...
user15181's user avatar
0 votes
1 answer
157 views

Keeping record of disk usage in Debian

I stumbled across this beautiful program ncdu and it definitely is a great program to view your diskspace. But however if i want to keep a track of my disk usage, it provides not options to export the ...
Mercurial's user avatar
  • 184
0 votes
1 answer
3k views

gnuplot: Calculate a square root

when I type sqrt(4) I get ^ invalid command how do I calculate the square root of a positive real number with gnuplot?
scjorge's user avatar
  • 361
2 votes
1 answer
213 views

Gnuplot Precission

Does anyone know whether there is a way to run gnuplot with quadruple arithmetic precision? E.g. When you want to plot a line and you want to subtract a value like "2....
Jannis Erhard's user avatar
2 votes
2 answers
16k views

how to include Angstrom symbol and Greek letters in gnuplot?

I am using gnuplot and would like to get the symbol for "Angstrom" (Å, ISO encoding 305) and the Greek letter Delta (Δ, Symbol 104) in the plot. How can I combine the two encoding schemes when ...
Nadia's user avatar
  • 21
3 votes
1 answer
700 views

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 ...
T. Zack Crawford's user avatar
0 votes
1 answer
3k views

Gnuplot: Plotting from *txt files from different directories by reading column header

My folder structure looks kind of like this $ tree . ├── Original_folder │ └── cat.txt ├── folderCD │ └── cat.txt ├── folderGK │ └── cat.txt ├── folderFE └── cat.txt Each cat.txt file has ...
Mr. 206's user avatar
  • 33
0 votes
2 answers
4k views

gnuplot - line 0: unexpected or unrecognized token

code: #!/usr/bin/env bash # download death data wget -O Deaths.txt http://www.randomservices.org/random/data/Deaths.txt wget -O Pumps.txt http://www.randomservices.org/random/data/Pumps.txt # Delete ...
Yiling Liu's user avatar
1 vote
0 answers
720 views

Plotting first column as X and every other column as a separate line for Y in gnuplot

I have a data file that is formatted as following: 1 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 2 0.943177 1.305333 1.735536 1.797774 1.598829 1.737834 ...
user2762996's user avatar
-1 votes
2 answers
4k views

Plotting all files from a directory in gnuplot

How to plot all files in directory in gnuplot? I mean the when I have 15 data files I will get 15 graphs. plot '???' with lines
Lukáš Altman's user avatar
0 votes
1 answer
783 views

How to concatenate and sort three CSV files in Gnuplot

I have to plot with Gnuplot the data contained in 3 CSV files. Commonly, I use the following code to plot from 2 CSV files: $datablock << EOD `cat ../Q1a/sim_Q1.csv <(tail -n+8 ../Q1b/...
user1993416's user avatar
0 votes
1 answer
2k views

Setting axis label and histogram labels using GNUplot

I have the following GNUplot file: set title "Performance of Quicksort over random data sets" set yrange [0:80000] set style data histogram set style histogram cluster set style fill solid border -1 ...
Johan Sjolen's user avatar
0 votes
0 answers
565 views

Change position on the graph screen gnuplot in bash script

i have a script in bash that read the file Throughputtx.txt and print this information in a graph of GNUPLOT, but this graph goes to the left side of my screen and I want it to be printed in the ...
Andres Andrade's user avatar
3 votes
1 answer
810 views

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: δ: ...
gboffi's user avatar
  • 1,454
1 vote
1 answer
191 views

Installing latest gnuplot on Debian Stretch for a single user

Is there an easy way to install the latest gnuplot on Debian stable without backports? Ideally as a local self-consistent installation that would not interfere with the rest of the system. Is it ...
atapaka's user avatar
  • 591
1 vote
2 answers
2k views

gnuplot, here-documents, and command line arguments

Can I use a here document to pass a gnuplot script to gnuplot and also have commandline line arguments passed to gnuplot? In my bash file, I would normally write: #!/bin/bash #set up code in here... ...
masher's user avatar
  • 155
0 votes
0 answers
617 views

How to (1) force zrange (2) the axis labels parallel in 3D plot using gnuplot?

I am trying to set the zrange in 3D plot from -0.04 to 0.04 as follows `set zrange [-0.04:0.04] this show the ztics from -0.04 to 0.04 but it leaves some space between the ztics and the x axis, 1- ...
Mohsen El-Tahawy's user avatar
0 votes
1 answer
390 views

How to draw jitter plot using gnuplot?

I'm trying to plot the data of 100x11 array in plot using gnuplot. I created a .gnu file to generate plot but unable to get jitter plot. I'm using the below code set terminal pngcairo size 1280,800 ...
Venkat's user avatar
  • 1