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
1
vote
1answer
17 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 ...
-1
votes
1answer
34 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 ...
0
votes
1answer
102 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?
1
vote
0answers
21 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....
0
votes
0answers
21 views

Is there a way to combine “variable pointsize”, with “ticlabels” in gnuplot?

Is there a way to combine "variable pointsize" (for example), with "ticlabels"? The documentation says (in different places): Variable pointsize is always taken from the first additional column ...
1
vote
2answers
833 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 ...
2
votes
1answer
73 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
1answer
634 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 ...
0
votes
2answers
654 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 ...
0
votes
0answers
31 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 ...
-1
votes
2answers
672 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
0answers
15 views

Saving and correcting a drawn plot in Gnuplot

I have a problem with three cases in Gnuplot: How to save a whole session and with what extension? How to save only variables and with what extension? If I am in the middle of setting data in order ...
0
votes
1answer
170 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/...
0
votes
1answer
47 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 ...
0
votes
0answers
110 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 ...
2
votes
1answer
241 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
1answer
86 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 ...
0
votes
2answers
432 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
0answers
206 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- ...
0
votes
1answer
244 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 ...
2
votes
1answer
365 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 ...
1
vote
1answer
648 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 ...
0
votes
2answers
82 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 ...
0
votes
1answer
491 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 ...
0
votes
1answer
2k 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 ...
2
votes
1answer
5k 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) ... ...
3
votes
1answer
2k 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"...
1
vote
2answers
2k 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 ...
0
votes
0answers
2k 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 ...
9
votes
2answers
25k 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 ...
-1
votes
1answer
611 views

Combining Shell and Gnuplot script

I have the following problem: I want to use a loop to plot data from different files (named file1.dat, file2.dat, ... in this example) in just one output-plot. I use this in a shell script to do so: ...
0
votes
1answer
626 views

How to add new terminal type after installation gnuplot?

I have installed gnuplot 5.0 using source code in my Ubuntu 14.04. Gnuplot is working but has not wxt and png terminal. Now I want to add this terminal. output of gnuplot>set terminal results ...
0
votes
0answers
105 views

Gnuplot no longer has widgets or icons

On my old machine, when I ran gnuplot, it looked something like this: (this screenshot isn't from my old machine -- I spun up a VM to take the above) On my new machine, it looks like this: Notice ...
0
votes
1answer
697 views

gnuplot - is there a way to make a 1-variable live plot display the latest value with a label?

I am using a data-logging system that adds a value to a data file called today.dat every 2 minutes. Here is what the data looks like: Here is the gnuplot program I use, where X is time and Y is ...
1
vote
0answers
230 views

gnuplot cannot zoom on Mac Sierra

A simple example such as gnuplot --persist -e 'plot sin(x)' I cannot zoom with or without mouse, or with the trackpad. I've checked/unchecked "emulate three button mouse" button too, I've plotted ...
4
votes
0answers
815 views

gnuplot, format axis with constant power of 10

I am trying to make a plot with values on the x axis ranging from 0 to 2 ms. I want to show a tick every .1 ms, with the labels going from 0.0, 0.1, ... up to 1.9, 2.0. I don't want to show the power ...
0
votes
1answer
88 views

How to run gnuplot by just typing 'gp' in osx?

When I use cent os or ubuntu, I just type 'gp' to run gnuplot. Of course, typing 'gnuplot' also works. But it doesn't work in osx terminal. How to make 'gp' possible?
0
votes
1answer
142 views

Gnuplot fitting with Gauss result in different surfaces, why?

I have a question related to the surface generation with gnuplot, or lets say with the fitting procedure. I have different curves which does not follow a mathematical formula but I need to use these ...
2
votes
1answer
956 views

A good RGB formulae in gnuplot for colored and gray 2d contour prints

I have a question about a handsome colorpalette for 2d contour plots in gnuplot. Based on the gnuplot manual and help function, I figured out that there are some pre-defined colors palettes like: ...
0
votes
1answer
511 views

How to call gnuplot for different scripts independently

i am using GNUplot to create figures from data points, GNUplot works with simple scripts that contain simple parameters/variables like the range of the x or y axis, settings for line colors and stuff ...
1
vote
1answer
5k views

Add y-axis value labels to gnuplot-bar chart

I am referring this example to draw a bar chart. I like, the exact value to be displayed on top of each of the red bars. Like, those numeric values that are circled in green, My gnuplot code is, ...
0
votes
1answer
218 views

Extract datetime and values for gnuplot

I have the following output and am trying to extract the following values: Date (X) and Value (Y), with each data point labeled by step number. Here is the output: Profiling step 1 @ 2016-08-31 11:...
0
votes
1answer
604 views

“Failed to initialize wxWidgets” followed by core dump

I'm testing some software under Solaris. The machine runs SunOS 5.11 (Solaris 11.3), and I connect to it over SSH. The software runs its benchmarks and then plots the data points. The makefile ...
2
votes
1answer
2k views

Closing many gnuplot -persist windows

I just opened more than a hundred persistent graphing windows using gnuplot -persist with x11 on a RHEL desktop. Is there any easy way to close them all? I don't really want to logout/in or click ...
1
vote
0answers
126 views

Access to bash arrays in gnuplot [duplicate]

In a bash script I have several arrays which I need to access in a gnuplot code: #!/bin/bash ... # fill array a[*] and b[*] ... gnuplot <<EOF do for [j=0:10] { # access ${a[j]} and ${b[j]} } ...
2
votes
1answer
3k views

Plotting graphs using bash

I have a file in the following format: 1043481872 1043481872 1043481872 1043481872 1043481873 1043481873 1043481873 1043481873 1043481874 1043481874 1043481874 1043481875 My question now boils down ...
0
votes
0answers
35 views

Using bash to plot a graph [duplicate]

I have a huge file which contains BGP updates in the following fashion : BGP4MP|1043481872|A|64.200.199.3|7911|217.72.176.0/20|7911 8272 16102 16102 16102|IGP|64.200.199.3|0|0|7911:999 7911:7211|NAG|...
1
vote
0answers
42 views

gnuplot - “nudge” plotted points away from the diagram edge

I wnt to plot some measured points. By default, gnuplot will choose the x-range [smallest_x:greatest_x]. Is there an option to have it choose a range slightly larger than that s.th. no point is ...
22
votes
3answers
20k views

How to keep gnuplot-x11 graph window open until manually closed?

For example, this keeps the gnuplot-x11 graph window open until a key is pressed: gnuplot -e "plot \"file\" ; pause -1 \"text\"" How to keep it open until manually closed?
3
votes
1answer
3k views

gnuplot output of a pipe

Inspired by this question I tried to pipe output to gnuplot and then plot it. My pipe is: cat file.txt | grep CU | perl -e 'while(<>){print +(split)[3], "\n"}' | gnuplot file.gp Where ...