22
edits
No edit summary |
No edit summary |
||
Line 33: | Line 33: | ||
* figure2 has 2 axes objects inside: a 'y=(sin(x))^2' and a 'y=x^2' | * figure2 has 2 axes objects inside: a 'y=(sin(x))^2' and a 'y=x^2' | ||
* the actual data and data-plot-properties are inside the handles {{Codeline|p}} and {{Codeline|r}}. | * the actual data and data-plot-properties are inside the handles {{Codeline|p}} and {{Codeline|r}}. | ||
To understand how to change things in this situation you ''have to know where you 'are' at this moment''. You 'are' in the second axes object {{Codeline|q}} of the second figure! | |||
So let's say you want to change the line thickness of the data in the first figure: | |||
figure(1) | |||
set(p,'linewidth',3) | |||
You can get the color of the two other plots by referring to their handles: | |||
get(q,'color') | |||
get(r,'color') | |||
Which will give you the RGB code for black (0,0,0) and green (0,1,0). | |||
Have a look at all the things you can change with: | |||
get(q) | |||
And {{Codeline|set} anything that is not to your taste to something else (for what's available see the [http://www.gnu.org/software/octave/doc/interpreter/ manual]. | |||
set(p,'marker','*') |
edits