How can I get rid of Title and x-label parts by default?
75 ビュー (過去 30 日間)
古いコメントを表示
Hi friends
I generate plots using ezplot. I changed some Default properties like Linewidth, Linecolor, Fontsize, .... using some codes as follows:
set(0, 'DefaultAxesFontSize', 20); set(0, 'DefaultAxesFontName', 'Cambria'); set(0, 'DefaultAxesFontWeight', 'Bold'); set(0, 'DefaultAxesLineWidth', 2);
But, I can not get rid of "Title" and "x-label" that appear by default. Please help me to get rid of them.
please see attached picture. (I don't know why there is no attach button!!!).
1 件のコメント
回答 (1 件)
Adam
2017 年 4 月 10 日
Use
doc fplot
instead. It has neither of these by default and is recommended by the help to use instead of ezplot (at least in my R2017a version anyway and fplot has been in Matlab since before R2006a)
3 件のコメント
Adam
2017 年 4 月 10 日
fplot(V2, [0 3.5 -0.05 1.05], 'LineWidth', 2);
will deal with the line width.
For the range I don't know what V2 is, but if I do:
figure; fplot( @(x) sin(x), [-0.05 1.05] )
I get the range [-0.05 1.05] as expected.
参考
カテゴリ
Help Center および File Exchange で Combine Multiple Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!