Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

rotate x tick label "error"

1 visualizzazione (ultimi 30 giorni)
Amr Hashem
Amr Hashem il 7 Ago 2015
Chiuso: MATLAB Answer Bot il 20 Ago 2021
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...!

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by