フィルターのクリア

how to fix the label position in figure file in matlab

2 ビュー (過去 30 日間)
amrinder
amrinder 2013 年 6 月 4 日
回答済み: Kim Winter 2018 年 6 月 27 日
hello all,
set(get(gca,'YLabel'),'Position',[1, 0, 0]);
this command changes the position of label constantly. but when i save the figure and see again by opening, some label of graph got displaced (i hv plotted 8 graphs using subplot in one figure file). How to fix the position of labels...
thanxxx..

回答 (1 件)

Kim Winter
Kim Winter 2018 年 6 月 27 日
Hi! gca returns the current axes or chart for the current figure, which is typically the last one created or clicked with the mouse. I'm not sure what the context of the use of this command is, but if you take out the gca portion of it, and replace it with a more defined set of axes, this problem may stop occurring. See: https://www.mathworks.com/help/matlab/ref/axes.html
For more information on gca, please see the link below. https://www.mathworks.com/help/matlab/ref/gca.html

カテゴリ

Help Center および File ExchangeGraphics Object Properties についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by