Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

rotate x tick label "error"

1 visualización (últimos 30 días)
Amr Hashem
Amr Hashem el 7 de Ag. de 2015
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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...!

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by