|
From: Daniel J S. <dan...@ie...> - 2006-11-02 18:40:37
|
didn't test fig or svg.
> By the way, svg doesn't have native "with image" support,
> so I am unclear exactly what code is being testing.
> Dan: what other drivers use the fall-back approximation indicated
> by this warning message:
>
> NOTICE: Visible pixels form rectangular grid, but
> there is no image matrix support for the
> active terminal. Reverting to color boxes.
Can't recall. All the major ones now have support. fig and svg seem like ones of less popularity but still probably used enough that don't have support. Then there is a big list of terminal drivers that probably don't see much use that have no support.
> Anyhow, I think you *are* agreeing with my summary.
> There are at least 3 different behaviors depending on the
> driver type.
>
> post fig svg(+others using same generic code?)
> wxt png pdf
> x11
Hard to believe I missed this. I recall testing output on several terminals.
Well, I'm having a hard time producing this problem. I'll keep investigating. But I do see a couple things that look different in the "image.dem".
>From a fresh launch of gnuplot (cvs version), this demo:
set title "Automatically recognizing file type and extracting file information"
plot 'demo.edf' binary filetype=auto with image
creates a plot that is square. That is, its as though "square" is active. But I can't recall it being that way. Also, if it is "square", I thought we changed that so the plot appears at the center of the window, not to the left side.
The last demo:
set xrange [-0.5:137.5]
set yrange [-0.5:137.5]
unset border
unset xtics
unset ytics
unset ztics
unset key
unset colorbox
set tmargin 0
set bmargin 0
set rmargin 0
set lmargin 0
set view 60, 45, 1, 1
set label 1 "\"Mirror mirror on the wall,\nwho's the GNUiest penguin of all?\"" at 140,0,40 center
splot 'blutux.rgb' binary array=128x128 flip=y rot=90d origin=(0,0,0) perp = (1,0,0) format='%uchar' using ($1+$2+$3) with image, \
'blutux.rgb' binary array=128x128 flipy rot=90d origin=(+137,+137,0) perp=(0,1,0) format='%uchar' using ($1+$2+$3) with image
has Tux at different angles and offset from what s/he normally is, now covering up the caption. Also, when I try running this last demo from a fresh gnuplot, it fails, saying:
GNUPLOT (plot_image): Image grid must be at least 2 x 2.
GNUPLOT (plot_image): Image grid must be at least 2 x 2.
That could be a long term bug, but one would think I'd have come across such a thing in all the testing that I once did.
So, I'm wondering if a bug has found its way into the code. Or possibly a change was made that now uncovers a bug that existed for a long time.
Dan
|