필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

rotate x tick label "error"

조회 수: 1 (최근 30일)
Amr Hashem
Amr Hashem 2015년 8월 7일
마감: MATLAB Answer Bot 2021년 8월 20일
i am trying to rotate x tick label, so i use a file exchanger
it works one time but on another data it gives me an error:
??? Error using ==> text
Invalid parameter/value pair arguments
Error in ==> xticklabel_rotate at 159
hText(cnt) =
text(XTick(cnt),y(cnt),xTickLabels{cnt},...
Error in ==> CountWordFreq02 at 16
xticklabel_rotate([],60,a(:,1));
this the code i am using:
figure('color','w')
bar(cell2mat(a(:,2)));
set(gca,'XTick',1:size(a,1))
set(gca,'XTickLabel',a(:,1))
xticklabel_rotate([],60,a(:,1));
% set(gca,'XTickLabelRotation',45)
set(gca,'YTick',0:1000:max(cell2mat(a(:,2))))
% set(a,'Rotation',90,'HorizontalAlignment','right')
xlabel(' Top words');
ylabel('Frequency');
title('Hardware words frequency');
what is the error ? and if there is any idea to modify it ?
note: it seems that number of bars must be 31 or more to work...!

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by