Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gnuplot]

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

0
votes
2answers
36 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
21 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 ...
0
votes
1answer
48 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
12 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
51 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
32 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
73 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
61 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
63 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
219 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
101 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
191 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 ...
1
vote
1answer
224 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
514 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
61 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
206 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
1k 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
4k 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
1k 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
1k 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 ...
7
votes
2answers
16k 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
434 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
465 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
48 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
379 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
153 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
575 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
83 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
113 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
760 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
412 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
4k 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
197 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
491 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
88 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]} } ...
1
vote
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
32 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
40 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 ...
17
votes
3answers
16k 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?
2
votes
1answer
2k 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 ...
1
vote
1answer
480 views

Why gnuplot plot don't plot straight lines?

I was trying to plot a regression line with gnuplot, but instead to plot a straight line plot a line full of bend.I printed it in png format.Here a pic.
1
vote
2answers
327 views

Gnuplot Shell Script

I was making this shell script to become faster in plotting data with gnuplot. It is the first s.s that I write so I'm having some difficulties. All was good until I started to make the if statement. ...
5
votes
1answer
5k views

gnuplot precision

I want to make a scatterplot with Gnuplot of these data (1st column as x-coordinates): 2015.493379 5 2015.505479 5 2015.513699 25 2015.530137 25 2015.532877 20 2015.543836 5 2015.552055 5 2015....
1
vote
2answers
6k views

How to plot specific rows for two graphs in Gnuplot?

Data ID BlockSize Size Blocks - 511.991 241520288 471728 001 511.868 24152000 47184 0001 503.2 241520 480 00001 510.829 2415200 4728 000001 511.360 ...
1
vote
2answers
189 views

What is the plotting mode of drawing with text symbols in Gnuplot?

I can recall in plotting by text (like textual symbols) in gnuplot. I wonder what are the flags for it in gnuplot. I am doing visual selection tool similar to bless but for pictures. For ...
1
vote
2answers
654 views

gnuplot set boxwidth not working

I'm having trouble with the boxwidth option in gnuplot when trying to plot a histogramm. Here is the gnuplot script I use to plot the histogram of random numbers normally distributed: # Parameters n=...
0
votes
1answer
349 views

gnuplot to show lables without . values

I have a graph in gluplot which shows downloads per day for the month. The labels are values like 2500.35 1500.15 6000.45 How can I remove values after the . (dot) so that it only prints this: 2500 ...
3
votes
3answers
893 views

Output to stdout works, fails when redirected to a file or a fifo

I have a Wifi antenna and I want to optimise it's position. For that propose I'd like to visualise the current latency in real time. I wrote a one-line script to output the ping latency: lat.sh: ...