Adjust the axis of bar3 plot
Mostrar comentarios más antiguos
Hi,
if I plot bar3(myMatrix) I got the result in the attached picture.
MyMatrix size is 70x15.
1.) How can make the y-axis (1:15) more broader, by keeping the other axis as it is. I think "daspect" is not appropriate.
2) Is ist possible to change y-axis to e.g. 30:45?

Thank you.
Respuesta aceptada
Más respuestas (2)
Samyuktha
el 5 de Abr. de 2023
0 votos
Hi CSCh,
I understand that you want to change the width and y-axis of the plot obtained from 'bar3' command.
You can change the width of the bars by changing the 'width' input argument. By default, width property is set to 0.8 and the bars have a slight separation.
You can change the labels of the axis by using the 'xticklabel', 'yticklabel' and 'zticklabel' properties of the bar3 plot.
Please refer to the following documentation link for more information:
Hope this helps!!
1 comentario
CSCh
el 5 de Abr. de 2023
Alon Slapak
el 30 de Sept. de 2023
0 votos
ax = gca;
ax.PlotBoxAspectRatio = [1 0.5 1];
1 comentario
Dyuman Joshi
el 30 de Sept. de 2023
This does not do what OP wants to do.
Categorías
Más información sobre 2-D and 3-D Plots 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!

