How to implement ColorMap into bar plot ?

16 次查看(过去 30 天)
I want to create a barplot with the colorcode [0 0 0.8]. How do i do that.
Current code:
figure(1) subplot(3,1,1) bar(-200:1:200,center_rel_01,'r'); grid on ylabel('Rel. Peak Area','FontSize',12,'FontWeight','bold') xlabel('m/z','FontSize',15,'FontWeight','bold') xlim([-200 200]) ylim([0 0.3]) h = legend('2a: NaCl pure');
color 'r' should now be changed in 'Color',[0 0 0.8] somehow?
Thanks

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Color and Styling 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by