Removing white space inside MATLAB plot
Ältere Kommentare anzeigen
I attach my plot and code part for the problem
My code:
% counts: is a 25*25 double array generated in my code
figure(1)
surf(counts,'EdgeColor','none','LineStyle','none');
view(-270,-90);
xtick = [0,2.5,7.5,12.5,17.5,22.5,25];
ytick = [0,2.5,7.5,12.5,17.5,22.5,25];
xticklabels = {'-125','-100','-50' '0','50','100', '125'};
yticklabels = {'-125','-100','-50' '0','50','100', '125'};
set(gca, 'XTick', xtick);
set(gca, 'XTickLabel', xticklabels,'fontsize',12,'fontweight','bold');
set(gca, 'YTick', ytick);
set(gca, 'YTickLabel', yticklabels);
colorbar;
Any help shall be appreciated.

Akzeptierte Antwort
Weitere Antworten (1)
Image Analyst
am 3 Feb. 2016
0 Stimmen
Why are you using surf when you aren't even taking advantage of the 3-D-ish perspective it makes? Why not use image() or imshow() instead?
3 Kommentare
Utsav
am 3 Feb. 2016
Mike Garrity
am 5 Feb. 2016
What version of MATLAB are you using?
That sounds like an issue that was fixed in R2014b. If you're using that version (or later), I'd like some more details.
Utsav
am 29 Apr. 2016
Kategorien
Mehr zu Animation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!