Set title to left corner doesnt work

View: New views
1 Messages — Rating Filter:   Alert me  

Set title to left corner doesnt work

by bat_boy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi folks!

I'd like to set the horizontal postition of the title in my plot to the left corner.
When I plot and do this:

title("This is my awesome title");
yl = get (gca (), 'title');
get(get(gca()).title).horizontalalignment
set (yl, 'horizontalalignment', 'center');
get(get(gca()).title).horizontalalignment
set (yl, 'horizontalalignment', 'left');
get(get(gca()).title).horizontalalignment

the output is

ans = left
ans = center
ans = left

So it seems that the value is set to "left" as default. Even setting it to "center" and to "left" afterwards doesnt have any effetct, the title remains in the center. Do I miss something here?

Thanks!
David