draw more date in the axis
Mostrar comentarios más antiguos
I would like to report more dates: for example every month or every week
I use plot to draw it..(
plot(Ax_Sys,XDates(locs(:,i)),sig,'DisplayName',STR_name{i},'Color',SumCTR_color(i,:),'LineWidth',1);)

Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 17 de En. de 2025
0 votos
Use xticks
If you must report every week, then you will probably want to use xtickangle
9 comentarios
Walter Roberson
el 18 de En. de 2025
Editada: Walter Roberson
el 18 de En. de 2025
Are you still using R2023a ? You have the habit of not filling in the Product and Release fields when creating Questions, but those are important information.
What shows up for
legendLines(i).Parent.XAxis
?
shamal
el 18 de En. de 2025
Cris LaPierre
el 18 de En. de 2025
Maybe alos share XDates.Format
Walter Roberson
el 18 de En. de 2025
What shows up for
which -all xticks
shamal
el 18 de En. de 2025
shamal
el 18 de En. de 2025
Cris LaPierre
el 20 de En. de 2025
Editada: Cris LaPierre
el 20 de En. de 2025
I can't duplicate your error, and I show an example that works with the expected data.
Please share all the data used to create your figure. Consider saving your variables to a mat file and attaching it to your post using the paperclip icon. Since you are specifiying a target axis, it would be insightful to see all relevant code.
Categorías
Más información sobre Bar 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!

