Dealing with plots, manipulation of the axis and the view
1 次查看(过去 30 天)
显示 更早的评论
i have the folow data
solvente=[5483 554 4012 69 776 64
939 74 1112 13 254 24
934 85 1121 13 242 21
1735 158 1140 23 298 34
673 41 413 6 125 22
1060 40 843 3 265 148]
bar(solvente,.5, 'grouped');
legend(['CDCl_3 ==> ' num2str(sum(solvente(:,1))*100/sum(sum(solvente))) '%'' ' '(' num2str(sum(solvente(:,1))) ')']...
, ['D_2O ==> ' num2str(sum(solvente(:,2))*100/sum(sum(solvente))) '%'' ' '(' num2str(sum(solvente(:,2))) ')' ]...
, ['DMSO ==> ' num2str(sum(solvente(:,3))*100/sum(sum(solvente))) '%'' ' '(' num2str(sum(solvente(:,3))) ')' ] ...
, ['Acetone-d_6 ==> ' num2str(sum(solvente(:,4))*100/sum(sum(solvente))) '%'' ' '(' num2str(sum(solvente(:,4))) ')' ]...
, ['MeOH-d_4 ==> ' num2str(sum(solvente(:,5))*100/sum(sum(solvente))) '%'' ' '(' num2str(sum(solvente(:,5))) ')' ] ...
, ['Pyridine ==> ' num2str(sum(solvente(:,6))*100/sum(sum(solvente))) '%'' ' '(' num2str(sum(solvente(:,6))) ')' ]);
title('Deutareted solvent used in NMR Analisys')
ylabel('Quantity of analisys')
The row represents the analisys 1= Proton 2= HMQC 3= HMBC 4= Carbon 13 5= DEPT 6= NOESY
i would like to change the value in xaxis to the strings above
And the first column that belongs to hidrogen analisys the values is to big and the view of the graph for others is prejudicated. How can i show this graph showing the values to others analisys and givving an increment to the hidrogens bars or somthing like that
0 个评论
采纳的回答
Jan
2011-10-25
For the first part:
set(gca, 'XTick', 1:6, ...
'XTickLabel', {'Proton', 'HMQC', 'HMBC', 'Carbon', 'DEPT', 'NOESY'});
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!