필터 지우기
필터 지우기

Change axes label position

조회 수: 3 (최근 30일)
klaus ebert
klaus ebert 2015년 6월 5일
Hello,
I have a problem which I somehow can't solve on my own at this moment. I have an axes in an existing figure and want to open a new figure on which I plot the this axes as a subplot. (with xlabel, ylabel, line and so on)
The problematic part of code for this is the following:
data= findall(oldaxeshandle);
data=data(2:end);
fig=figure;
handles.subp=subplot(2,2,[1,2]);
copyobj(data,handles.subp);
The occuring problem is that the x- and ylabels are misplaced (not centered and too far away from the plot) and that some properties like xlim arent copied at all. Is there some way to make it without these problems? Or at least a way to "center" and restore the normal label position?
Thank you for your help! Klaus

답변 (0개)

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by