Naming x-values in bar(x,y)
Julian
el 23 de Oct. de 2023
Actividad más reciente Respuesta de Karol Ondrejkovic
a las el 5 de Feb. de 2024
I know the latest version of MATLAB R2023b has this feature already, put it should be added to R2023a as well because of its simplicity and convenience.
Basically, I want to make a bar graph that lets me name each column in a basic bar graph:
y=[100 99 100 200 200 300 500 800 1000];
x=["0-4" "5-17" "18-29" "30-39" "40-49" "50-64" "65-74" "75-84" "85+"];
bar(x,y)
However, in R2023a, this isn't a feature. I think it should be added because it helps to present data and ideas more clearly and professionally, which is the purpose of a graph to begin with.
4 Comentarios
Tiempo descendenteHello,
As you said, the feature specifyng bar labels as string vectors is introduced in R2023b. Please refer to this release note.
Bar Charts: Specify bar labels as string vectors
When you create bar charts using the bar and barh functions, you can specify the bar labels as string vectors. The bar tick labels appear in the order you specify them.
Unfortunately, newly introduced features that are not bug fixes will not be backported to previous releases.
Inicie sesión para participar
