Dealing with plots, manipulation of the axis and the view

조회 수: 2 (최근 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 CenterFile Exchange에서 Scopes and Data Logging에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by