Hello, I am not sure to well understand which result you want, if nom_fichier is a variable or a litteral, etc. May be the following would be convenient: legend(nom_fichier+string(1:Nbre_fichiers),2) Samuel