フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How do I get rid of the flat coloring in a bar graph?

2 ビュー (過去 30 日間)
rkepp12
rkepp12 2016 年 8 月 19 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I am trying to create bar graphs with two different sets of data plotted on the same axes. Below is the code I am using to produce the bar graphs:
figure(10+1000*i+100*j)
bar(syncedCrankPhase_rev_avg, datVec_emg_hist(:,3), 'FaceColor', 'r')
hold on
bar(syncedCrankPhase_rev_avg, datVec_emg_hist(:,4), 'FaceColor', 'b')
hold off
xlabel('Crank Position (degrees from +x axis)')
ylabel('Probability of Onset')
title('Average Onset Detection of Biceps and Triceps Over Crank Revolution')
legend('Biceps', 'Triceps')
I have also attached the plot that it creates. The problem is that there should be two separate data sets (in two separate colors), but instead I get a single bar graph with the data sets merged together and flat color shading. Does anyone know how I can fix this? Is it a problem with my settings?

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by