Hello. I am plotting the data from a UITable using a bar chart
I am plotting color versus TotalArea, and quite often the color column has the same value e.g 457. This causes the bar chart to crash, so I have to manually go in and append _1, _2 etc..
Is there a way to get the barchart working without having to manually intervene. Please note, I don't always have the same X values (Color), sometimes several values with repeats, sometimes all different values. The values will be either 405, 457 or 532. For any repeats, I still want to plot them as seperate bars
Here is my current code.
app.UIAxes2.NextPlot = 'replacechildren';
Xdata = categorical(X);
X = reordercats(Xdata,X);