How to implement ColorMap into bar plot ?

16 vues (au cours des 30 derniers jours)
Berko Sierau
Berko Sierau le 24 Avr 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

Réponses (0)

Catégories

En savoir plus sur Color and Styling dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by