Dealing with plots, manipulation of the axis and the view

1 回表示 (過去 30 日間)
Rafael Freire
Rafael Freire 2011 年 10 月 24 日
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

採用された回答

Jan
Jan 2011 年 10 月 25 日
For the first part:
set(gca, 'XTick', 1:6, ...
'XTickLabel', {'Proton', 'HMQC', 'HMBC', 'Carbon', 'DEPT', 'NOESY'});
For a "broken axes" see: FEX: breakaxis

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by