bar chart 2 data sets side by side with different axis
Show older comments
hold on;
yyaxis left
bar(T3_blocked)
yyaxis right
bar(S1_free)
set(gca, 'XTickLabel',name)
set(gca, 'XTick',1:length(name))
set(gca, 'XTickLabelRotation',45)
hold off;
produces:

how can I have the two bars for each material side by side, so the y-axes are both increasing in the same direction (up)?
Accepted Answer
More Answers (1)
Categories
Find more on Bar Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!