Numbers in GUI are upside down
Show older comments
Hi,
i show a matrix in an image with different colors and to show the values i use the text-property of axes. but know the numbers in the axes of my GUI are upside down and i don't know why. I use MATLAB 7.12.0 (R2011a) at home and at work i use R2010b and there they are normal. The code for the axes is:
cmap = load('StoichMap1.mat');
amin = min(A(:));
amax = max(A(:));
if abs(amin) <= amax
grenzeoben = amax;
else
grenzeoben = abs(amin);
end
grenzeunten = grenzeoben * (-1);
imagesc(A,'CDataMapping','scaled')
alpha 0.5
%axis equal
axis off
colormap(cmap.StoichMap1)
caxis([grenzeunten grenzeoben]);
%if and(size(A,1)<25,size(A,2)<25)
for i = 1:size(A,2)
for j = 1:size(A,1)
if A(j,i)~= 0
text(i,j,num2str(A(j,i)),'HorizontalAlignment','center','Fontsize',22)
end
end
end
Hope anyone can help me Thank you
Accepted Answer
More Answers (0)
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!