figure内のsubplotで共通のxticks,xticklabels,xlimを使う方法
Mostrar comentarios más antiguos
現在は各subplotに対し
xlabelname='namae'
subplot(1) xticklabels(xlabelname)
subplot(2) xticklabels(xlabelname) ...
と続けているのですが、figure内のサブプロットにすべて共通のxticks他を当てはめるので、もっと簡略化したいです。
setやXTicksなどを使ってできると思うのですが...?
Respuesta aceptada
Más respuestas (1)
madhan ravi
el 30 de Oct. de 2018
Editada: madhan ravi
el 30 de Oct. de 2018
h = subplot(3,3,1);
h1 = subplot(3,3,1);
xlabel(h,'x');
ylabel(h,'y');
xlabel(h,'t');
ylabel(h,'y');
set(h,'XTickLabel',{'a','b','c'});
set(h1,'XTickLabel',{'g','h','j'});
1 comentario
madhan ravi
el 30 de Oct. de 2018
The above shows an example to change xticklabels for different subplots using handles
Categorías
Más información sobre Subplots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!