How to implement ColorMap into bar plot ?

16 views (last 30 days)
Berko Sierau
Berko Sierau on 24 Apr 2014
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

Answers (0)

Categories

Find more on Color and Styling 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!