matlab - How to Change the Color and Font Size of the Seond Axis of Plotyy? -
i have plotted 2 curves using plotyy function of matlab:
[ax,h1,h2] = plotyy(voltage_span, amplitude,voltage_span, ca_sr);
the problem cannot change color , font of second axis(the right one). following figure the output of plotyy function.
matlab states changing axes's label, 1 should use followings:
set(get(ax(1),'ylabel'),'string','slow decay') set(get(ax(2),'ylabel'),'string','fast decay')
so, tried following commands(which doesn't work):
set(get(ax(2),'ycolor'),[1 0 1]); % matlab gives error! invalid handle object.
if 1 enters get(ax(2)), can see properties of right axis seems not have color property. wondering problem , how change color , font size of right axis(?)
set(ax(1), 'ycolor', [0 1 0]) set(ax(2), 'ycolor', [1 0 1])
Comments
Post a Comment