help-octave
[Top][All Lists]
Advanced

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

RE: 2 Y-axes in the same figure


From: William Krekeler
Subject: RE: 2 Y-axes in the same figure
Date: Fri, 21 Oct 2011 13:30:52 +0000

 

From: address@hidden [mailto:address@hidden On Behalf Of Eduardo J. Adam
Sent: Friday, October 21, 2011 7:56 AM
To: Liam Groener
Cc: address@hidden
Subject: Re: 2 Y-axes in the same figure

 

Thanks Liam,
1. One of my problem is the command set. I was reading about that and the syntaxes is,

set(h,attr,val)

I'm looking for a a list or table with different attribute and values for this command and I don't find it.
Did you know a web page or whatever for that?


Liam,

You want to run the get command on the object handle. That will list all the object properties and their values. Then you can use the set command with the desired property you wish to change. You can also grab the current state of a specific property for object x and apply it to object y using: set( yHan, 'Property', get( xHan, 'Property') ) syntax. Below is a quick example of what you actually asked for. FYI, you may need to runĀ  get( get( handle, 'Child' ), 'Child') etc several times (a nested example was shown) to get down to the particular object you wish to change. Note, the Child property may be an array.

h = plot( some_data )

get(h)

 

 

William Krekeler


reply via email to

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