6,912 questions
0
votes
1
answer
27
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 ...
-3
votes
1
answer
62
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 ...
0
votes
1
answer
86
views
plot difference between calculated and measured data [closed]
I have files of measured data that I want to compare with calculated values.
The calculated plot is exponential decay that I can plot with: plot k + a*exp(b*x). The x axis is time, formatted as %M:%S....
2
votes
1
answer
110
views
Adding folders to GNUPLOT_LIB with set loadpath works fine, once. Has to be repeated for every new session
Interactive session:
set loadpath 'C:\Gnuplot\commands'
show loadpath confirms its inclusion in GNUPLOT_LIB and I successfully load '<command>.gp' and execute the command.
At the next ...
1
vote
1
answer
60
views
Gnuplot provides set loadpath to add folders to GNUPLOT_LIB. Unsure about the proper syntax to be used
I am using gnuplot 6.0.3. The user manual is somewhat out of whack with its syntax for set loadpath {"pathlist1" {"pathlist2"...}}; the { and } brackets are rejected, as are ...
0
votes
1
answer
65
views
How can I tell gnuplot to place a label outside the plotting area?
The gnuplot documentation says that "Labels outside the plotted boundaries are permitted but may interfere with axis labels or other text." Doing this seems like it would be straightforward:
...
1
vote
2
answers
114
views
Display labels on both sides of Gnuplot graph
Gnuplot 5 on Raspberry Pi.
How can I duplicate the y-axis text (-1, -0.8 etc) on both the left and the right sides of the graph?
This is the code used to create it:
set key fixed left top vertical ...
0
votes
2
answers
48
views
retrieve ruler position for `mouseformat`
Is there a way to have access to the ruler postion?
I'm trying to change the mouse format using set mouse mouseformat function:
It works with something like:
set mouse mouseformat function sprintf(&...
0
votes
0
answers
71
views
Don't display a Gnuplot graph in a window
Gnuplot 5.4 on a Raspberry Pi. When run from the command line in a graphical interface, the script below (which I've pruned a bit) creates a png. As it does so, a window appears then disappears.
set ...
1
vote
1
answer
65
views
gnuplot 6.0 animation not updating
I've never used stack overflow before, but I don't know who else i can go to for this, so apologies if I don't provide all relevant information.
I am using "gnuplot 6.0 patch level 3 console ...
2
votes
1
answer
59
views
gnuplot: how to color points based on column value when also using hypertext labels?
I have the following gnuplot data file:
1 4 foo 1
2 3 bar 2
5 8 baz 1
I have the following gnuplot command:
set terminal qt
label_text(str1) = sprintf("%s", ...
2
votes
3
answers
107
views
Drawing a vertical line in Gnuplot and adding a key/legend to it
reset
set encoding utf8
set terminal pdfcairo size 20cm,20cm font "STIX Two Math, 22" enhanced
set output "straight-lines.pdf"
#
set grid linetype 0 linewidth 1 dashtype 3 ...
0
votes
1
answer
70
views
Gnuplot while loop not looping when I change machines
I wrote a gnuplot script to use an infinite while loop (re)plotting data from a live data source. Something like this:
while (1) {
plot "< get_data | paste x_axis.dat -"
pause 2
}
...
2
votes
1
answer
110
views
Gnuplot `title` using `set` and `show` versus as a follow on to `plot` on polar coordinates
I am using gnuplot 6.0 patchlevel 3 on Manjaro Linux, with the MWE below
reset
set encoding utf8
set terminal pdfcairo size 8in,8in font "STIX Two Math, 24" enhanced
set output "mwe-SO....
2
votes
3
answers
167
views
How can I plot color cubes?
I have two cubes defined in the $d1 and $d2 data blocks.
If I type these into gnuplot interactively, it works fine.
But if I put the code into a.txt and then run load 'a.txt' in gnuplot, it fails on ...