Questions tagged [gnuplot]

Gnuplot is a portable command-line driven graphing utility for linux, OS/2, MS Windows, OSX, VMS, and many other platforms. Use this tag for questions about programmatic use of Gnuplot; debugging interactive usage is off-topic.

0
votes
0answers
10 views

Using gnuplot with xeus-cling jupyter C++ kernal to import and plot .dat signal file

Working in Jupyter notebook with xeus-cling C++ kernal, I'm trying to utilize gnuplot to import a signal represented as a .dat file for the purpose of plotting. I just cannot get it to work. Does ...
0
votes
1answer
21 views

x axis on top of graph in gnu plot

I'm able to put an x axis on the top of a graph in gnu plot via set x2label "label" and set x2tics I have a column of data of data1 values and I'd like to plot these values multiplied by two on ...
2
votes
1answer
25 views

Awk line work in terminal but not in Gnuplot plot

I have my data in a CSV file where the data starts at the 8th row. There are many columns but I want to show $46 and $47. I have tried: set encoding iso_8859_1 set key right bottom font "Helvetica,...
0
votes
1answer
17 views

Gnuplot with Errorbars and line of regression

I want to graph some values with errorbars but it somehow doesnt work. Can you help me please? 431.00E12 0.69 47.00E5 567.00E12 1.10 58.00E5 662.00E12 1.75 67.00E5 watched a lot of ...
1
vote
1answer
19 views

Plot a 3-D column plot in Gnuplot (5.3 development version) with “variable” boxdepth (to appear fixed width) columns on logscaled y,z-axes

I am trying to plot a 3-D column plot in Gnuplot 5.3 (development version) on y,z-logscales such that the columns appear uniform in size on the graph (i.e., variable "boxdepth" for each point ...
0
votes
1answer
26 views

Export fitted data from gnuplot in a datafile [duplicate]

I am applying smooth bezier function to smooth a data which I have to plot. Can gnuplot give this smoothened data as well in a datafile as output ?
0
votes
1answer
25 views

Gnuplot automatically closes

I'm new in gnuplot and I'm reading a book and trying a code taught in the book "gnuplot cookbook". I ran a code from the book in gnuplot and the program shows set x2tics -20 2 before it closes by ...
1
vote
1answer
45 views

Italic and bold Latin, and Greek letters using custom unicode font in gnuplot to produce (e)ps or pdf

I would like to create a postscript or pdf figure with enhanced notations, italic or bold Latin characters, and sometimes (regular) Greek characters. How to do that in general? Let's say I downloaded ...
1
vote
1answer
34 views

Plotting a trig circle in gnuplot

I find myself unable to get the trigonometric circle right with gnuplot. The code is reset session # PI = 4.*atan(1.) # set term qt set arrow from 0, 0 to 0, 1 lc 'black' nohead set arrow from 0, ...
1
vote
1answer
22 views

plotting “with impulses” using multiple fields from an input file

sample "input file": x y1(red) y2(blue) y3(green) 10 0.08 0.02 0.90 15 0.03 0.90 0.07 20 0.85 0.10 0.05 My x-axis is 10, 15, 20, or column 1 in the sample input ...
0
votes
1answer
25 views

plot data with errorbars and sort them with gnuplot

I have a file statistics.dat with measurements I made. It has the format node Mean StdDev 1 11862.4 142.871 2 11722.4 141.330 [...] I can make a sorted graph with plot '< sort -n -...
2
votes
2answers
47 views

gnuplot: How to draw a filled area with hole?

Is there maybe a way to draw a filled area with a hole in it? A practical example would be to draw the borders of South-Africa with transparent background. A simple copy&paste example below. ...
1
vote
1answer
31 views

Plotting data point statistics (min,max,median)

My file (file.dat) contains the following format #X Avg Median Min Max 6144 329.355 329.368 329.058899 329.504681 7168 447.697 447.717 447.254499 447.886343 8192 582.577 ...
1
vote
1answer
14 views

How to be sure that my scale axis does not vary from a graph to the other with the same set palette defined?

I am plotting maps of interactions between residues of differents proteins. The maps should have the same z scale. x,y are the residue number of the proteins, z is the pourcentage of interaction. I ...
2
votes
1answer
25 views

Gnuplot: how to display hours past 24?

I have a data file with voltage readings that covers a period of some 45 hours. First timestamp is 0:05:00 and last is 45:05:59. I can set timefmt correctly to read the data. My problem is on the ...
1
vote
1answer
25 views

gnuplot confuses when date time data crosses midnight

I am trying to plot the data set below by using the gnuplot options set xdata time; set timefmt "%m/%d %H:%M:%S"; set datafile separator "-"; set format x "%m-%d\n%H:%M" 05/23 23:56:00-16 05/23 23:57:...
0
votes
1answer
47 views

Plotting n lines each second with Gnuplot

I have to say that i am new to Gnuplot. I have a file with 3 columns of datas and I managed plotting it with gnuplot "name.txt" obtaining a 3D graph. Now i would want to graph n lines of that txt ...
0
votes
0answers
33 views

gnuplot hypertext doesn't work on svg terminal

I have a file 'test.data' having the following data: 0 0 "no yes" 1 3 "yes no" 4 6 "th" 7 9 "fo" I can run gnuplot command from linux: plot 'test.data' using 1:2:3 with labels hypertext point pt ...
0
votes
0answers
26 views

Make mesh from .gnu file

I have a .gnu file generated from Gnuplot, is there any way to a make a mesh file with that? To work with GMSH or Paraview. I used voro++ to generate voronoi tessellation diagram in .gnu format.but ...
1
vote
0answers
53 views

How to fix 'GNUPlot doesn't plot first point of a 2D contour data, generated by splotting to table

I have generated a table (splot with "set table 'datafile'" option) in order to obtain a data file of contours. Then, I use the generated datafile, with plot command, in order to generate a 2d graph. ...
-1
votes
1answer
29 views

How do I add a certain amount of numbers data together in gnuplot from a text-file?

I have a text-file that has generated values every second by a radiation monitor via a serial-controller. How do I add this data up to hours, days, etc. for gnuplot to plot? Preferably added via ...
2
votes
1answer
49 views

Incorrect position and size of percentages in Gnu Plot

I have developped a CGI in bash/html that allow me to generate a graph of my clusters. Here is an exemple : This is a graph that works well. The problem is that for some graphs, the percentages ...
0
votes
0answers
20 views

How to add labels in points or over bars in a chart with Numo :: Gnuplot

I want to add labels above each bar of the chart. I tried: gnuplot.run 'podpis(col) = sprintf("%d",$7)' and add a second data series, and otherwise, but I do not remember hmm, also : 7:xtic(1):...
2
votes
2answers
119 views

Plotting Heatmap with different column/line widths

I am simulating something and want to figure out the influence of two parameters. Therefore I vary them both and look for the result on each pair of parameter values and get a result like: 0 1000 ...
3
votes
1answer
55 views

How to plot same value until it change?

I have data in file and they have date/time point and value. The line in data is written only when value change. For example: 10:01 12.00 10:12 8.00 10:14 9.00 I would like to plot a graph ...
1
vote
1answer
23 views

How to demonstrate LaTeX formula with Gnuplot?

I have attempted to demonstrate a LaTeX formula with Gnuplot 5.0. But I found that some LaTeX commands are unavailable. This is my Gnuplot Code: set termoption enhanced set title "Title test^a \...
1
vote
1answer
28 views

How can solve the code of a rotated histogram?

Hi to whole stackoverflow group, I am having a series of problems when defining the axes range in my graphic and format in general, and I would like to share it with you to see if among all we can ...
1
vote
1answer
62 views

Break y-axis in three parts in gnuplot

I try to plot some data that has a huge gap in the y axis which I wish to exclude from the graph. noises: I found this guide to split the graph into two parts, which works great for me. reset ...
0
votes
1answer
48 views

Save output from 'stats' command in gnuplot

I want to statistically analyse outputfiles from a benchmark that runs on 600 nodes. In particular, I need the min, upper quartile, median, lower quartile, min and mean values. My output are the files ...
2
votes
1answer
41 views

Gnuplot: “Complementary” dashed lines

I would like to plot "complementary" dashed lines. What I mean is the following: I have three curves that are identical in a certain range of x values but different outside this range. Of course, if I ...
0
votes
3answers
49 views

How to represent the scatterpoints of a 3D function with GNUPLOT

I would like to represent in 3D the result of the function f(X,Y,Z) = (X²(Y+Z) + Y²(X-Z) +Z²(-X-Y) -21) with scatter points. Any advice how to do this in GNUPLOT is welcome (in -100 to +100 in each ...
0
votes
0answers
35 views

Gnuplot auto-size?

I'm able to create a graph with gnuplot. I use this template to do it : f(w) = (strlen(w) > 10 ? word(w, 1) . "\n" . word(w, 2) : w) set title "TITLE" set terminal png truecolor size 960, 720 ...
-1
votes
1answer
21 views

Plotted function is spiky, how to make it render smoother

Every time there is a narrow peak in my function, gnuplot renders it as a spike: And only after I zoom in, it can be seen that it's actually smooth: Is there a way to force gnuplot into evaluating ...
1
vote
0answers
26 views

How to do Poisson regression in gnuplot

I measured the spectrum of an X-ray tube with a Geiger counter. Such data aren't normally distributed, but instead they follow the Poisson distribution. I want to fit a curve to the measured data: a =...
0
votes
1answer
49 views

How to put bash variable in html <img> tag?

I am creating a CGI that allows me to directly see the RAM and CPU consumption of several clusters using a graph generated by gnuplot. So I have a first web page with a menu listbox in which are ...
0
votes
1answer
59 views

Save output file from 'stats' command in gnuplot?

I want to save the output from the 'stats' command in gnuplot as a file. I try to analyse multiple .dat files and compare them according to their min, max, mean, std derivation. So I need to create a ...
-1
votes
1answer
24 views

How do I improve my fit of the double slit diffraction in gnuplot?

I wrote this code to fit the intensity equation of a double slit diffraction over my measured data. The problem is that the fit graph isnt proportional to the plot of the measured data. The measured ...
0
votes
2answers
35 views

Plot date and time interval and duration

I have a list of date+time start and stop that I would like to plot as bars. The X-axis should go from 00:00-23:59 with date on the Y-axis I tried plotting in gnuplot, but my skills are not good ...
0
votes
0answers
41 views

Gnuplot integer overflow

I have a file that I want to plot in gnuplot. Syntax goes as such ; 0 1556626208759228959 1 1556626208700312846 0 1556626208700456361 1 1556626208745168734 0 1556626208745256732 1 1556626208933206888 ...
0
votes
1answer
44 views

Gnuplot iteration of plotting columns in a single row not plotting every point

I have a data file with 100 rows and about 400 columns. I am trying to plot each set of 2 columns (an x and y position for a single point) by iterating through the columns as done from Selecting a ...
1
vote
2answers
60 views

Gnuplot: how to set pm3d map transparent?

I have really simple question: I would like to know how to make the contour figure (pm3d map) transparent in Gnuplot (gnuplot version 5.2). I could find ways to make transparent plots or filled curve,...
0
votes
1answer
31 views

gnuplot error: Cannot open script file 'plot Deaths.txt with dots'

I am following the tutorial on this webpage https://subscription.packtpub.com/book/big_data_and_business_intelligence/9781849517249/1/ch01lvl1sec14/making-a-scatterplot But when I wrote my own script ...
0
votes
2answers
69 views

How do I manually iterate x and y values of a plot and apply the x,y indices to a heatmap function?

I have a very large data file that includes many snapshots of the same Nodes in a computing cluster. I am measuring datarate between each connected endpoint and want to display the result in a ...
0
votes
1answer
81 views

Greek letter pi in gnuplot not rendering

I've got this code in an Emacs orgmode file: #+begin_src gnuplot :exports results :file images/sinecosine.png reset set terminal png size 360, 360 enhanced # Line styles set border linewidth 1 set ...
2
votes
1answer
49 views

gnuplot replot: “Scan size of matrix is zero”

I am trying to (frequently, e.g. every 0.01s) replot a 2D dataset in gnuplot, by generating a small (e.g. 10x10) 2D numpy array in python and saving it to a file. Running the following works for a ...
0
votes
1answer
12 views

Octave division of a binomial breaks plot

I am not sure if this is the correct stack exchange for this question. I normally use javascript and a canvas to graph an equation. I am trying out Octave. I am having trouble getting any function ...
2
votes
1answer
61 views

gnuplot: How to keep constant colors with splot and pm3d?

Basically, I want to draw colored spheres via parametric splot (image below, top). However, I couldn't find a way to make them uniform in color but each sphere with a different color. I found this ...
0
votes
2answers
44 views

Install rpm package: missing requires of (installed) program error

I am trying to install a package I built that requires gnuplot. I currently have gnuplot installed on my CentOS machine: $ which gnuplot /usr/bin/gnuplot $ gnuplot --version gnuplot 4.6 patchlevel ...
2
votes
1answer
18 views

How to fill a section between two curves inside a defined range?

I am writing a report and need to make some nice plots to explain my problem. To do so, I would like to plot two curves f(x) and g(x) and fill the space between xmin and xmax. Is there a way to do it? ...
0
votes
1answer
34 views

How to update numeric values on plot as plot changes

I'm trying to add time information on a plot of filled circles as they appear (one at a time) on the plot. So it looks like a movie of a filled circle moving around on the plot. I've tried the simple ...

http://mssss.yulina-kosm.ru