Cant Remove Axis Labels
古いコメントを表示
I know this is a very common question, and I tried many answers given, setting Xtick to [], XTickLabel, YTick, YTickLabel etc...but still not working. Can someone please tell me how to remove the axes labels, cause they are interfering with the image I am diplaying on the axes. Would appreciate a hint !
1 件のコメント
Azzi Abdelmalek
2016 年 4 月 4 日
What is your code for that?
回答 (1 件)
Azzi Abdelmalek
2016 年 4 月 4 日
t=1:10
y=t.^2
plot(t,y)
set(gca,'xtick',[])
9 件のコメント
ImageProcessor
2016 年 4 月 4 日
Azzi Abdelmalek
2016 年 4 月 4 日
編集済み: Azzi Abdelmalek
2016 年 4 月 4 日
set(handles.axes1,'xtick',[])
ImageProcessor
2016 年 4 月 4 日
編集済み: ImageProcessor
2016 年 4 月 4 日
Azzi Abdelmalek
2016 年 4 月 4 日
It seems that those ticks are part of your image.
Azzi Abdelmalek
2016 年 4 月 4 日
編集済み: Azzi Abdelmalek
2016 年 4 月 4 日
you can get ride of those ticks by trying something like
img(:,1:10)=[] % you have to find the limits
img(end-10:end,:)=[]
imshow(img)
% im is your image
Walter Roberson
2016 年 4 月 4 日
The ticks are being generated by something later, or on a different axes that happens to align with that one. Or the labels are on the y or z axes.
By the way, more robust would be
imshow(img, 'Parent', handles.axes1);
axis(handles.axes1, 'image');
set(handles.axes1, 'xtick', [], 'ytick', [], 'ztick', []);
ImageProcessor
2016 年 4 月 4 日
Walter Roberson
2016 年 4 月 4 日
What turned out to be the problem?
ImageProcessor
2016 年 4 月 5 日
カテゴリ
ヘルプ センター および File Exchange で Axis Labels についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
