scatter points on top of bar not showing
4 views (last 30 days)
Show older comments
I am trying to plot a scatter of points on top of a stacked bar chart. I can see half of some of the points where the circle of the scatter goes below zero slightly, but the rest appear to be hidden under the bars. I am using 'hold on' so I don't know what is going wrong! I can plot either the graph or scatter on its own and I get what I want. The scatter points use the same x-axis values as the bar. I just don't understand what I'm doing wrong! You can just about see the half scatter points on the last three bars.
figure();
bar(All_A_fluxes(:,1:7),'stacked'); hold on; %Not including dQ
scatter([1:19],All_A_fluxes(:,8));
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Scatter 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!