Domanda

entrare descrizione dell'immagine qui

In base alla sottotrama sopra:

1) Voglio essere in grado di avere un titolo principale al primo posto che rappresenta il titolo di tutte le sottotrame.

2) desidero aumentare la lunghezza del titolo di ogni sottotrama tale che la lunghezza del titolo può essere esteso come la lunghezza della figura nella direzione X.

A proposito di figura: Sto usando questo titolo all'interno del ciclo che viene eseguito 3 volte:

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
È stato utile?

Soluzione

1) SUPLABEL is the File Exchange submission you can use for the main title. You can also apply x and y labels for a group of subplots.

2) use curly brackets in title call to get strings, not cells:

title(['Area where saturation due to ',CO2_label{1,4},...
       ' > saturation due to ',CO2_label{1,i}],'Fontweight','Bold')
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top