[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch for __uio_draw_axes__ for multiple images
From: |
Daniel J Sebald |
Subject: |
Re: Patch for __uio_draw_axes__ for multiple images |
Date: |
Wed, 21 Feb 2007 23:49:17 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020 |
Daniel J Sebald wrote:
[Note the above script may be revealing a bug not directly associated
with the patch. I'll get that in a new patch.]
Actually, I just confused x and y dimensions of a matrix. (Should probably do
a dimension check on the matrices inside the image() function, but the user
should figure things out soon enough.):
A = loadimage("default.img");
[size_y, size_x] = size(A);
X = ones(1,size_y)'*[1:size_x];
Y = [1:size_y]'*ones(1,size_x);
fig1 = figure();
set(fig1,"visible","off")
image(X, Y, A);
hold on;
image(X+size_x, Y, fliplr(A));
image(X, Y+size_y, flipud(A));
image(X+size_x, Y+size_y, flipud(fliplr(A)));
axis([0 2*size_x+1 0 2*size_y+1]);
ocean(64);
set(fig1,"visible","on");