> - try different syntaxes that should be equivalent like fig.children.x_label.text='foo' instead of xtitle('foo') or fig.visible='on' instead of  set(fig,'visible','on').
Sorry, I meant fig.children.title.text='foo' instead of xtitle('foo')
Antoine