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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Color and Styling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!