matlabのfigureのset関数による設定
Introduction
matlabでの複数同時plotや,各figureへの設定のために.
Note:
この文書内のコードは以下のルールで書かれています.(書くように心がけています
Class, methodはpascal case
variableはsnake case
ただし,言語のstandard libraryに関しては以下の通りではない.
Official Documentsより
http://jp.mathworks.com/help/matlab/ref/figure-properties.html
figureクラスのインスタンスの生成
CreateFigure.m
index = 1; %figure handle, indexは1から2147483646の整数値
hoge = figure(index); %figureインスタンスの生成,indexはhogeに格納
indexを空にすると小さい順に空いている番号を入れてくれるのでそのほうがいいかも
生成したfigure objectにpropertyを設定する
SetPropertytoFigure.m
%hogeは生成したfigure object
%Template
%set(hoge, 'PropertyName', 'PropertyValue');
set(hoge, 'Color', 'cyan'); %hoge figure背景色をColor::Cyanにする.
とりあえずの終わりに
実際に設定したい項目は軸関連のAxesのほうが多い感じです.追記予定...