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. enter image description here

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

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -