help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change Color Axis on plotyy function


From: bpabbott
Subject: Re: Change Color Axis on plotyy function
Date: Wed, 02 Mar 2011 17:18:49 +0000 (GMT)

On Mar 02, 2011, at 11:36 AM, toutsec <address@hidden> wrote:

Hi,
I would like to change the color of the axis on a plotyy. In default, the
ylabel and yticklabel of the second graph are green and the axis himself is
black.
[AX,H1,H2]=plotyy(x1,y1,x2,y2,'plot') % in order to plot the 2 sets of data
I am setting the label with this command :
set(getAX(2),'YLabel'),'String','Label 2');

This command :
set(getAX(2),'YColor'),'Color','red');
does'nt work.

Do you have any idea?
I want also to change the fontsize of the label.

Thanks!
 
"ycolor" is a property,  not an object. Try ...

    set (AX(2), "ycolor", "r")

To change the color of the ylabel ...

    set(getAX(2),'YLabel'),'String','Label 2', 'color', 'r'); 

Ben




reply via email to

[Prev in Thread] Current Thread [Next in Thread]