Questions tagged [gnuplot]
Gnuplot is a portable command-line driven graphing utility for Linux, OS/2, MS Windows, OSX, VMS, and many other platforms.
104 questions
0
votes
1
answer
42
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 ...
0
votes
1
answer
158
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 ...
1
vote
1
answer
3k
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 ...
2
votes
2
answers
289
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....
1
vote
0
answers
152
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 &...
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:...
1
vote
0
answers
1k
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 ...
2
votes
0
answers
207
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-...
1
vote
1
answer
309
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 ...
1
vote
1
answer
268
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:
...
1
vote
0
answers
257
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 ...
1
vote
1
answer
255
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 ...
0
votes
1
answer
3k
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 ...
0
votes
0
answers
483
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 ...
0
votes
1
answer
417
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....
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 ...
0
votes
1
answer
181
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 ...
2
votes
1
answer
283
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....
3
votes
1
answer
1k
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 ...
0
votes
2
answers
5k
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 ...
-1
votes
2
answers
5k
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
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
...
3
votes
1
answer
974
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: δ: ...
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...
...
0
votes
1
answer
407
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 ...