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

learn more… | top users | synonyms

0
votes
0answers
34 views

gnuplot: How to get coordinate x,y of nearest position on graph?

For example, with plot [1:10] x*2, if I move the mouse pointer to 4,7.8, how to make gnuplot show 4,8 somewhere (better with a red dot on the graph), which is the nearest coordinate on the plotted ...
0
votes
1answer
14 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
35 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
25 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]} } ...
0
votes
0answers
21 views

plotting long equations in multiplot environment in GNUPlot

How to plot a function similar to: f(t)=\tfrac{1}{8M^2N^2}\bigg[(U+J)^2M^2+\Big((U-J)^2+2M^2\Big)N^2-(U-J-M)(U-J+M)N^2\cos\big(2Mt\big)+M\Big(2N^2\Big\{(U-J-M)\cos\big((2J-M)t\big)-(U-J+M)\cos\big((...
0
votes
1answer
85 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
22 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|...
0
votes
0answers
39 views

bash script and multiple gnuplot

I have following 16 files PO01_energy PO02_energy PO03_energy ... PO16_energy I wish to plot a 16 graphs with gnuplot. So, I write a code like for i in 01 02 03 04 05 06 07 08 09 10 11 12 13 14 ...
1
vote
0answers
15 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 ...
1
vote
1answer
306 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
64 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 ...
0
votes
1answer
102 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
69 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. ...
2
votes
1answer
664 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
712 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
0answers
48 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
1answer
110 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
66 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: ...
3
votes
3answers
240 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: ...
0
votes
3answers
140 views

Read line from file and add that to the same line of another file

I have one file like this: aaa bbbb c And another one like this: 1 1241 2 301094209 3 432423 I want this: 1 1241 aaa 2 301094209 bbbb 3 432423 c so I can plot it with Gnuplot. If you ...
1
vote
1answer
36 views

To plot 7x10 pictures for review in video

Assume you have 77777 pictures. You want to review them and their differences: have 7x10 pictures without margins to have an image viewer where the minimum browse time can be less than 1.0 s such ...
1
vote
1answer
118 views

Plot values returned by command output

I have a little script that prints the CPU temperature after each T period of time, so the output is something like this: 19/02/15,01:00 30 19/02/15,02:00 33 19/02/15,03:00 38 19/02/15,04:00 32 ...
0
votes
1answer
772 views

/usr/bin/gnuplot.exe: error while loading shared libraries: cyggd-2.dll: cannot open shared object file

I am trying to run Octave under Windows and to run graphics plotting routine under it. It requires Cygwin and X/Cygwin. When I trying to run any plotting routine, the following error appears: /usr/...
1
vote
1answer
168 views

How to use bash shell for gnuplot to show Greek letter?

I want to write a bash shell for gnuplot to produce figures automatically. But my figure includes Greek letters inside. I have known their ASCII number, how can I show them correctly in figures after ...
3
votes
1answer
699 views

extracting data from a log file and plotting it using Gnuplot

I have a logfile with the following data in it: Sat Sep 20 11:25:01 BST 2014 -- temp=53.0'C -- message from script /usr/src/scripts/wifi_test_2.sh Sat Sep 20 11:26:01 BST 2014 -- temp=53.0'C -- ...
1
vote
3answers
266 views

Home and End keys in a gnuplot interactive terminal do not move cursor

When working interactively with gnuplot, the home and end keys do not move the cursor to the beginning and end of a line, but instead produce the characters "OH" and "OF", respectively. What's the ...
5
votes
1answer
182 views

How to get rid of unnecessary lines in gnuplot

So I'm pretty new to using gnuplot, and my code looks like this: set isosamples 40 unset key set title "Radial Matrix Elements" set xrange [1:15] set yrange [1:15] set xlabel "n1*" set ylabel "n2*" ...
0
votes
0answers
246 views

Gnuplot and process-substitution

I have a log file where I need to cut out two values at different positions. these are: time and dQ in my file. The main problem is the paste I think. cause the other utilities work pretty well on ...
1
vote
0answers
1k views

Octave - warning: unable to open X11 DISPLAY

My setup is as follows: Octave 3.6.4 Mac OS X Mavericks 2009 Macbook Pro I'm trying to run Octave in Terminal, with gnuplot. I'm trying to plot matrices in a graph, as part of an online Coursera ...
2
votes
1answer
337 views

How to take advantage of gnuplot internal functions by column reference at shell

I want to do something like: echo "p 'myfile.txt' u 1:(exp($2))" | gnuplot -p but need the shell to pass the $2 as a literal into gnuplot.
4
votes
1answer
530 views

gnuplot lost the plot

I'm experimenting with evolutionary algorithms and I have written two text files that I cannot get the plot. Based on the information on google, I think I have the format correct. (generation-number)...
4
votes
1answer
5k views

GNUplot--Change steps of yrange

I'm learning GNUplot. I need to change steps in which Y values increase while plotting my graph.xrange command will change range but steps. Ex. I have data like this 1 1000 2 1500 3 1 4 200 ... By ...
4
votes
1answer
2k views

gnuplot shell variable substitution and arrays

I need to use shell variables in my gnuplot commands, for which I'm using the here document style. I also need to use loops inside the gnuplot code. Both these things are working. Now -- I want to ...
2
votes
1answer
878 views

specify geometry of a new gnuplot window in lxde

I have a script that runs a calculation and then plots the result using gnuplot script file. The problem is that I need to make more than one plot and I don't want windows to cover each other. I ...
3
votes
2answers
202 views

gnuplot 'with lines' produces unwanted “boxes”

I have following commands: set xdata time set timefmt "%s" set terminal jpeg size 800,600 set output "image.jpg" set yrange [-100:] plot "file" using 1:2 Which provide the following output: ...
10
votes
2answers
28k views

automate gnuplot plotting with bash

I have 6 files which need to be plotted as line graphs with error margins and output them to different png files. The file format is as follows. seconds mean-average min max How would I go about ...
1
vote
2answers
1k views

How to plot many linegraphs on one page with gnuplot

In gnuplot, I want to plot many line graph in one window. I drew graph with multiplot but the label names are not displayed properly, label1 and label2 are printed over each other. How can I solve ...
3
votes
2answers
6k views

Plotting in gnuplot

I have a set of data in a text file (X,Y coordinates which are not sorted). I want to plot it using gnuplot and connect plotted points using lines. I tried: plot "a.txt" with lines but it is ...