Borrar filtros
Borrar filtros

plot all dates to x-axis in bar graph

16 visualizaciones (últimos 30 días)
MakM
MakM el 10 de Nov. de 2022
Respondida: Cris LaPierre el 10 de Nov. de 2022
d = datetime(2017,1:20,1);
x = rand(1,20);
bar(d,x)
I have this code, I want all the 20 dates to be visible on the x axis, but only 4 months are visible, what can I add in the code to get all the dates on the x-axis.

Respuesta aceptada

Cris LaPierre
Cris LaPierre el 10 de Nov. de 2022
d = datetime(2017,1:20,1);
x = rand(1,20);
bar(d,x)
xticks(d)

Más respuestas (0)

Categorías

Más información sobre Bar Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by