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
2 votes
1 answer
24 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:...
user avatar
0 votes
0 answers
51 views

How do I set the point type to UTF8 characters in Gnuplot

I am attempting to plot data points using UTF8 characters. I am using Gnuplot V5.2 running in Debian Buster. The plot is saved to .eps for later inclusion in a Latex document. If I plot using pt &...
user avatar
  • 1
0 votes
0 answers
60 views

Gnuplot fenceplot remove vertical lines

By the following code I have plotted some data. The data are organized by columns, each column represents a curve. How can I remove the vertical lines in the plot? set style fill transparent solid 0.8 ...
user avatar
0 votes
0 answers
257 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 ...
user avatar
0 votes
1 answer
275 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 ...
user avatar
1 vote
0 answers
47 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-...
user avatar
  • 133
0 votes
0 answers
77 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 .. ...
user avatar
  • 1
1 vote
1 answer
81 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 ...
user avatar
-1 votes
1 answer
52 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 ...
user avatar
1 vote
1 answer
134 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: ...
user avatar
0 votes
0 answers
19 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 ...
user avatar
  • 65
1 vote
0 answers
99 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 ...
user avatar
  • 21
0 votes
2 answers
324 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 ...
user avatar
  • 411
1 vote
1 answer
57 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 ...
user avatar
2 votes
1 answer
1k 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 ...
user avatar
0 votes
1 answer
783 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 ...
user avatar
  • 199
1 vote
1 answer
524 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 ...
user avatar
0 votes
0 answers
110 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 ...
user avatar
0 votes
1 answer
28 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 ...
user avatar
0 votes
1 answer
141 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....
user avatar
0 votes
0 answers
73 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?. ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
  • 199
1 vote
1 answer
1k 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 ...
user avatar
0 votes
1 answer
107 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 ...
user avatar
  • 174
0 votes
1 answer
1k 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?
user avatar
  • 341
2 votes
1 answer
124 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....
user avatar
2 votes
2 answers
9k 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 ...
user avatar
  • 21
3 votes
1 answer
407 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 ...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
  • 33
0 votes
2 answers
3k 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 ...
user avatar
0 votes
0 answers
361 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 ...
user avatar
-1 votes
2 answers
3k 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
user avatar
0 votes
1 answer
560 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/...
user avatar
0 votes
1 answer
595 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 ...
user avatar
0 votes
0 answers
326 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 ...
user avatar
3 votes
1 answer
568 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: δ: ...
user avatar
  • 945
1 vote
1 answer
122 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 ...
user avatar
  • 441
0 votes
2 answers
981 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... ...
user avatar
  • 135
0 votes
0 answers
422 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- ...
user avatar
0 votes
1 answer
326 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 ...
user avatar
  • 1
2 votes
1 answer
632 views

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 ...
user avatar
1 vote
1 answer
831 views

Plot using the stats of a file with same value in the x range

I would like to plot means and confidence interval with Gnuplot. My data has several samples with the same x value 21 27 4 12 20 100 50000 false 0.1 "DFSA" 2 205068 31.986 24 27 4 ...
user avatar
  • 83
0 votes
2 answers
99 views

Reorder plot titles for filledcurved

I have a nice gnuplot graphic in which I want to change the labeling in the key. The problem that I have is related to the filledcurves option. To make things easier, I attached the image. As one can ...
user avatar
  • 153
0 votes
1 answer
1k views

how can I include an image file into a gnuplot-generated file?

I have a small image (*.eps or *.pdf) and want to include it into a gnuplot-generated file (based on regular data). I mean is there any command or trick that would put my external image in like a ...
user avatar
  • 91
0 votes
1 answer
3k views

plot 2D graph with points from a file

I have a file with values 2 2 3 21 4 583 5 197 6 83 7 179 8 246 9 220 10 393 11 295 12 339 13 250 14 223 15 194 16 895 17 201 18 1097 19 371 20 706 21 76 22 180 23 236 ...
user avatar
  • 13
2 votes
1 answer
7k views

Getting errors while trying to install a package in Kali Linux

I've been experiencing this problem the past few days with the gnuplot packages. First of all, i execute dpkg --configure -a and this is the output: Processing triggers for tex-common (6.09) ... ...
user avatar
3 votes
1 answer
3k views

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"...
user avatar
  • 495
1 vote
2 answers
4k views

How can I plot a sum function using gnuplot?

I want to plot the following function sum a*exp(-0.001*(x-b)**2) where a and b values are listed in the 1st and 2nd columns of an input file respectively, like this a1 b1 a2 b2 a3 b3 ..... an bn ...
user avatar
0 votes
0 answers
3k views

gnuplot 5 on CentOs with png support

Help me please to make gnuplot 5 working on CentOs with png terminal I did not find rpm package for gnuplot 5 on Centos- may be you can point me? I downloaded sources compiled and installed - no png ...
user avatar
11 votes
2 answers
41k views

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 ...
user avatar
  • 111