6,910 questions
Score of 1
0 answers
92 views
Adding left and right front grid or "z2axis" tics to 3D Gnuplot graph
How can I add a "front" grid to a 3D gnuplot graph?
The attached image shows what I want. It's a slightly modified version of the documentation example https://gnuplot.sourceforge.net/demo_6....
Score of 0
0 answers
72 views
Easier plotting for iterm2/hterm with gnuplot
I'm working with a web-based terminal, hterm, which uses iterm2's protocol for inline graphics. In gnuplot I can produce inline graphs by writing a gnuplot macro (called "looky.gp") that ...
Score of 2
1 answer
71 views
How plot a matrix cubic
I have plot a matrix cubic in gnuplot with the following code :
reset session
set datafile separator comma
set table $Cube
f0(n,i) = !((n-i)%3)*(((n-i)>2-i)*2-1)
f1(n) = ((n%4)>1)-0.5
...
Score of 0
1 answer
157 views
multiplot not overlaying properly
I am trying to use gnuplot's multiplot to overlay two graphs and compare them. I am using the restore feature, but it's not overlaying correctly. There is a slight change of the origin so the diagrams ...
Score of 2
1 answer
113 views
How to find automatically computed margins in gnuplot
Is there a way in gnuplot to determine the automatically computed margins in screen coordinates so that they can be used to set them fixed in another plot? That is if show margins says
lmargin is ...
Score of 1
1 answer
79 views
How to set the default "line" color in the legend of a plot using title lc variable
In a program, I have the following complex command which draws different curves where data are in about 20 different columns:
plot "file.txt" using 2:($5 == 1 && $6==2 ? $10 : 1/0):(...
Score of 1
2 answers
139 views
How to make a nonlinear color bar?
I have a data file which has a lot of data between [-5:5] and some extreme data with values around -20. If I use a linear color scale, the smaller magnitude data cannot be seen on the plot. So I am ...
Score of 1
2 answers
124 views
Putting a time interval on x axis
I tried to make a graph using gnuplot where I want to plot a price over a time period (4 am to 10 pm but over a larger time period). My input has a date-time column and a price column:
$Data << ...
Score of 2
1 answer
50 views
Gnuplot epslatex terminal: No Angstrom symbol
I am trying to put an Angstrom symbol in xlabel with Gnuplot 5.4 patchlevel 3 :
set term epslatex standalone color colortext
set xlabel "Wavelength, (${\\AA}$)"
But it does not work. Many ...
Score of 1
1 answer
92 views
How to display large integers on tick labels?
When I plot large integers (on any axis) for a 2D plot, the tick marks get displayed in scientific notation. For example:
for i in 1 2 3; do date +%s%N; done | gnuplot --persist -e 'plot "-" ...
Score of 1
1 answer
130 views
line 0: undefined variable: u - How to make shell not interpret gnuplot variable?
#!/bin/zsh
for i in $(ls rid_*.xvg | sort -V | head -n1)
do
echo ${i}
gnuplot <<- EOF
reset session
FILE="${i}"
set yrange [0:30]
# Gaussian function
g(x)=...
Score of 1
2 answers
114 views
Gnuplot 2D histograms bins in loop
This is a follow up to a similar question Plot with 2D histograms bins answered by @theozh. I've been trying to modify the linked code to work in a loop. However I've encountered a few problems ...
Score of 4
1 answer
126 views
How to mark some timeslots with a gray background in gnuplot?
I have a data set over several years that I normally plot as a time-series. See the picture below for an example. I would like to mark the winter-months in the (faked!) indicated way.
But I don't ...
Score of 1
1 answer
59 views
gnuplot input and/or tic number processing/formatting
Gnuplot v6.0.3
My data looks like:
2004-01-15 4.89 with a y range in this set of 2 (but potentially +/-200)
My script is:
set term qt font "sans,9" size 1500,750
set decimal locale
set xtic ...
Score of -3
1 answer
84 views
Why does Gnuplot date processing always render 01-01-1970?
My data file looks like this:
2025-11-07 4450786
2025-11-14 4347929
2025-11-21 4243246
2025-12-12 4292480
2025-12-19 4272879
2025-12-24 4326509
My script file is:
set autoscale
unset log
unset ...