How do I rotate the X and Y axes of my histogram in MATLAB (R2011b)?
51 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have a histogram for which I want to rotate the X and Y axes by 90 degrees. How can I achieve that?
Respuesta aceptada
MathWorks Support Team
el 20 de Jun. de 2013
To rotate the axes, you would need to get their handle and modify the 'View' option. Here is an example to illustrate this:
>> N = 1000;
>> binCount = 100;
>> figure
>> hist(gca,rand(N,1),binCount);
>> set(gca,'view',[90 -90]
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!