Borrar filtros
Borrar filtros

how can i change the xlim in bar?

14 visualizaciones (últimos 30 días)
Rt Ro
Rt Ro el 3 de Mayo de 2019
Comentada: Rt Ro el 3 de Mayo de 2019
The x values change from 1970 to 2006, the below figure is between data and the years. (for each year I have 5 bars).
I want to show all years or each two years (1970, 1973,1975,...) on the x axis . how can I do it?
untitled.jpg

Respuesta aceptada

Rik
Rik el 3 de Mayo de 2019
You mean like this?
set(gca,'XTick',ceil(1970:2.5:2005))

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