Consider the following example:
#!/usr/bin/env gnuplot
set terminal png
set output "test.png"
$test_data << EOD
0 0 0 # fails if this entry is missing
0 1 1
1 0 2
1 1 3 # fails if this entry is missing
EOD
plot $test_data sparse matrix=(2,2) using 1:2:3 with image notitle;
This works fine in this version, or when the entries 0 1 1
or 1 0 2
are removed. However, when removing the first or the last entry (the ones with the lowest and highest x and y coordinates, respectively, gnuplot fails with the error line 13: image coordinates undefined
. This error message seems to come from src/graphics.c:process_image
in the current code (631c9c6066d4b0d3ed2a58b0bba6ab1f0b13862f). The behavior reproduces on this commit and using gnuplot 6.0 patchlevel 2.