Stuck in subplot mode, how do I reset the plotting engine?

9 ビュー (過去 30 日間)
Starla Barton
Starla Barton 2017 年 5 月 7 日
編集済み: Jan 2017 年 5 月 8 日
Any time I plot it shows up as if subplot(2,2,1); was called first. This happens with a new figure, restarting matlab, etc.. I suspect there is some left over state from having paused an iterative plotting routine (watching an optimization proceed by plotting intermediate results). Another possible original cause is having resized the figure while the iterative plots were going on. Both of those actions caused weird plots at the time. Whatever the reason, plotting is now stuck in some non-default mode.
I have tried reset(gca); reset(gcf);

回答 (1 件)

Jan
Jan 2017 年 5 月 8 日
編集済み: Jan 2017 年 5 月 8 日
Let me repeat: You start Matlab and create a diagram by
AxesH = axes()
Now the position of the axes is the same as if you run
Axes2H = subplot(2,2,1)
Is this your problem? Then the default settings have been changed. Try:
set(groot, 'defaultaxesposition', 'factoryaxesposition');
Does matlabrc.m or startup.m contain any code, which changes the default position?

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by