Watch this Author's files
I really like the visual result of your function. I have a question, though:
where does that black dots grid-like superimposed to the spectrograms come from?
I updated the file to solve the bug occurring when legends were added.
returns not only the axes' handles but also the legends' handles, which I didn't know.
Great job. It's always been confusing to decide what information to put and in which order in my files.
Now, you finally solved that problem :)
Armin Schoisswohl's solution did the trick! ;)