LoginSignup
0
0

More than 5 years have passed since last update.

matlabのfigureの設定

Posted at

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のほうが多い感じです.追記予定...

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0