Subplot: title length size and main title

enter image description here

Based on the above subtitle:

1) I want to have one main heading in the top position, which represents the name of all the subplots.

2) I would like to increase the title length of each subtitle so that the title length can be increased as the length of the figure in the X direction.

About the picture: I use this header in a loop that runs 3 times:

CO2_label={'Normal CO2','CO2 with 0.1% NPs','CO2 with 0.5% NPs','CO2 with 1% NPs';'-b','-r','-g','-k'}; for i=1:3 . . . title(['Area where saturation due to ',CO2_label(1,4),' > saturation due to ',CO2_label(1,i)],'Fontweight','Bold') end 
+4
source share
1 answer

1) SUPLABEL is an Exchange file feed that you can use for the main header. You can also apply labels x and y for a group of subheadings.

2) use curly braces in the header call to get rows, not cells:

 title(['Area where saturation due to ',CO2_label{1,4},... ' > saturation due to ',CO2_label{1,i}],'Fontweight','Bold') 
+4
source

Source: https://habr.com/ru/post/1396713/


All Articles