找回密码
 注册
Simdroid-非首页
查看: 56|回复: 3

图像坐标重合该如何解决

[复制链接]
发表于 2011-4-19 10:13:28 | 显示全部楼层 |阅读模式 来自 江苏镇江
如题,不晓得那里设置错误了,结果我输入的坐标并没将原来图形自带的坐标覆盖住、如图我现在的横坐标本来是时间t/s
但是输入后,原来的坐标还在上面(time(sec)。。这可麻烦了,我只要我的坐标希望覆盖原有自带的坐标,该如何解决啊???希望高手指点!!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2011-4-19 10:26:23 | 显示全部楼层 来自 北京
Simdroid开发平台
把代码贴上来,看一下
再者,你这不是横坐标,是xlabel
回复 不支持

使用道具 举报

 楼主| 发表于 2011-4-20 08:23:54 | 显示全部楼层 来自 江苏镇江
换个图形吧,效果也一样。。 function createaxes(Parent1, XData1, YData1, XData2, YData2) %CREATEAXES(PARENT1,XDATA1,YDATA1,XDATA2,YDATA2) % PARENT1: axes parent % XDATA1: line xdata % YDATA1: line ydata % XDATA2: line xdata % YDATA2: line ydata % Auto-generated by MATLAB on 20-Apr-2011 08:42:21 % Create axes axes1 = axes('Parent',Parent1,'Position',[0.2534 0.3342 0.1661 0.4154]); % Uncomment the following line to preserve the X-limits of the axes % xlim([0 2]); % Uncomment the following line to preserve the Y-limits of the axes % ylim([0 1.4]); % Create xlabel xlabel({'时间t/s'}); % Create ylabel ylabel({'角度θ_p/°'}); % Create line line(XData1,YData1,'Parent',axes1,'Visible','off','Color',[0 0 1]); % Create hggroup hggroup1 = hggroup('Parent',axes1,'DisplayName','G4'); % Create line line(XData2,YData2,'Parent',hggroup1,'Color',[0 0 1]);

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复 不支持

使用道具 举报

 楼主| 发表于 2011-4-20 08:24:40 | 显示全部楼层 来自 江苏镇江
2# ljelly
function createaxes(Parent1, XData1, YData1, XData2, YData2)
%CREATEAXES(PARENT1,XDATA1,YDATA1,XDATA2,YDATA2)
%  PARENT1:  axes parent
%  XDATA1:  line xdata
%  YDATA1:  line ydata
%  XDATA2:  line xdata
%  YDATA2:  line ydata
%  Auto-generated by MATLAB on 20-Apr-2011 08:42:21
% Create axes
axes1 = axes('Parent',Parent1,'Position',[0.2534 0.3342 0.1661 0.4154]);
% Uncomment the following line to preserve the X-limits of the axes
% xlim([0 2]);
% Uncomment the following line to preserve the Y-limits of the axes
% ylim([0 1.4]);
% Create xlabel
xlabel({'时间t/s'});
% Create ylabel
ylabel({'角度θ_p/°'});
% Create line
line(XData1,YData1,'Parent',axes1,'Visible','off','Color',[0 0 1]);
% Create hggroup
hggroup1 = hggroup('Parent',axes1,'DisplayName','G4');
% Create line
line(XData2,YData2,'Parent',hggroup1,'Color',[0 0 1]);

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Simapps系列直播

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-10-4 21:19 , Processed in 0.034908 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表