MATLAB: Legend title only without marker and lines of data

legend

Hi all, Are there any way to get rid of data related marks and only display title of the legend. Any suggestion would be great.

Best Answer

Looks like the text position is consistently in the upper right (irrespective of range scale values) to me, but if you say you've tried it and it's not fulfilling your requirements then fair enough. I can't say I have any other ideas.

for iter=1:30
    dataX=randi(randi(100,1,1),1,randi(30,1,1))
    dataY=randi(randi(100,1,1),1,length(dataX))
    figure(iter)
    plot(dataX,dataY)
    text(0.9,0.9,'tst','Units','normalized')
end