MATLAB Answers

Igor
0

Figure Editor: how to change default settings?

Asked by Igor
on 7 May 2011
R2010a is installed on two computers (in different places). Someway, while same simple command >>fplot('x.^2',[0 1]), Figure Editor runs at different setting -- the 1st computer plot white background for axes, the 2nd -- black one. Of course, I suppuse that default colormaps differ. I need the same snapshots!
How to repair situation?

  0 Comments

Sign in to comment.

1 Answer

Answer by Teja Muppirala
on 8 May 2011
 Accepted Answer

One MATLAB has its colordef as black.
colordef black
figure
fplot('x.^2',[0 1])
colordef white
figure
fplot('x.^2',[0 1])
See the documentation for COLORDEF. I've always liked colordef black though...

  0 Comments

Sign in to comment.