The commands below render the proper image when using the "qt" or "x11" terminal. The "aqua" terminal produces a blank plot box.
set terminal aqua
set xrange [-5.000000000000000e-01:3.500000000000000e+00] noreverse;
set yrange [-5.000000000000000e-01:4.500000000000000e+00] reverse;
unset key;
unset colorbox;
plot "image.png" binary filetype=png w rgbimage
I'm running Gnuplot 4.6 patchlevel 1 and AquaTerm v1.1.1 (from MacPorts) on MacOS 10.7.5.
png for failing example
Does it work any better if you append the keyword "failsafe" to the plot command?
That should bypass the special purpose driver routine term->image() and instead draw individual colored rectangles. If it works, that isolates the problem to a specific routine.
Ethan, you suggestion worked. Adding "failsafe" results in the expected result
For anyone who comes across this and needs a work around, reverting to gnuplot 4.6.0 works for me.
That would seem to narrow down the possible offending changes to a single culprit:
http://gnuplot.cvs.sourceforge.net/viewvc/gnuplot/gnuplot/term/aquaterm.trm?r1=1.43.2.1&r2=1.43.2.2
Does reverting that one change fix the probleM?
Ethan, Alexander Hansen of Fink confirmed that reverting the change fixed the issue.
https://mailman.cae.wisc.edu/pipermail/help-octave/2013-February/057332.html
I have reverted the patch in both 4.6 and 4.7.
At some point it would be nice if someone either confirmed that clipping of images does work in aquaterm or sent me a replacement patch fixing it.
Here's where the fun begins. I can confirm that the example doesn't work on gnuplot 4.6.1 and AquaTerm from MacPorts. However, it does work if I compile the CVS version before reverting the patch, using exactly the same AquaTerm Framework and application (from MacPorts). That is totally confusing and I cannot explain it yet.
Tiny request: can the bug ticket please be left open until the clipping problem is solved? If nothing else, with the latest CVS the following fails to work properly under all circumstances:
Macports is an convenient package manager for debugging these sort of compatibility problems. I tried using gnuplot 4.6.1 with AquaTerm 1.0.1 (bug persists).
I also tried gnuplot 4.6.0 with AquaTerm 1.1.1 (bug is not there)
I don't think the problem can be with the MacPorts port file since the problem is also present with Fink. However, the MacPorts portfile for Aquaterm 1.1.1 is at the link below.
https://trac.macports.org/browser/trunk/dports/aqua/aquaterm/Portfile
Can't reproduce with current CVS.
See comments attached to patch #636
https://sourceforge.net/p/gnuplot/patches/636/
Well, it "works-for-me-too", but now the problem is the following example which lacks clipping:
This is the original report: https://sourceforge.net/p/gnuplot/bugs/1115/
And here was the patch: https://sourceforge.net/p/gnuplot/patches/582/ that was later reverted.
The problem seems to be in AquaTerm itself which fails to draw anything when clipping is applied.