The "record" treatment of binary image data yields incorrect plotting. Since "record" is used (in parallel with other plotting methods) to set the scale, aspect ratio, rotation, and skew of an image, this is a serious problem. "array" input works OK, but for certain size values "record" causes duplicate copies of the output image. This occurs for many output terminals -- I have tested with pngcairo, png, x11, wxt, and pdfcairo. I attach sample output and a datafile that reproduce the problem, along with the script below.
[dhcp-10-227:~/Documents/Projects/jets] zowie% gnuplot G N U P L O T Version 5.0 patchlevel 3 last modified 2016-02-21 Copyright (C) 1986-1993, 1998, 2004, 2007-2016 Thomas Williams, Colin Kelley and many others gnuplot home: http://www.gnuplot.info faq, bugs, etc: type "help FAQ" immediate help: type "help" (plot window: hit 'h') Terminal type set to 'qt' gnuplot> set terminal pngcairo size 800,800 Terminal type set to 'pngcairo' Options are ' background "#ffffff" enhanced fontscale 1.0 size 800, 800 ' gnuplot> set output "ok.png" gnuplot> set title "Array processing (implicit index) is OK" gnuplot> plot "imdump2.dat" binary array=(200,400) format="%double%double%double" using 3 with image gnuplot> set output "bad.png" gnuplot> set title "Record processing (explicit index) is bad" gnuplot> plot "imdump2.dat" binary record=(200,400) format="%double%double%double" using 1:2:3 with image gnuplot> set output "x.png" gnuplot> set title "X index is as expected" gnuplot> plot "imdump2.dat" binary array=(200,400) format="%double%double%double" using 1 with image gnuplot>
Log in to post a comment.