matlab中axes用法
来源:互联网 发布:大数据概念股一览表 编辑:程序博客网 时间:2024/06/06 03:38
%创建axes坐标图
h = axes();
%定义图形位置和大小,[left bottom width height]
%set(h,'Position',[0.1 0.1 0.8 0.8]);
%画图
x=0:0.01:12;
y=sin(x);
plot(h,sin(x));
%Sets the location of the tick marks along the axis
set(h,'XTickLabel',[0;2;4;6;8;10;12;14]);
%显示方格
set(h,'XGrid','on','YGrid','on');
%设置颜色、字体等属性
set(h,'XColor',[0 0 0.7],...
'YColor',[0 0 0.7],...
'ZColor',[0 0 0.7],...
'Color',[.9 .9 .9],...
'GridLineStyle','--',...
'ZTickLabel','-1|Z = 0 Plane|+1',...
'FontName','times',...
'FontAngle','italic',...
'FontSize',14);
%定义X坐标和Y坐标的标签名
set(get(h,'XLabel'),'String','Values of X',...
'FontName','times',...
'FontAngle','italic',...
'FontSize',14);
set(get(h,'YLabel'),'String','Values of Y',...
'FontName','times',...
'FontAngle','italic',...
'FontSize',14)
%定义图形标题名
set(get(h,'Title'),'String','/fontname{times}/ity=sin(x)',...
'FontName','times',...
'Color',[0 0 0.7],...
'FontSize',14);
h = axes();
%定义图形位置和大小,[left bottom width height]
%set(h,'Position',[0.1 0.1 0.8 0.8]);
%画图
x=0:0.01:12;
y=sin(x);
plot(h,sin(x));
%Sets the location of the tick marks along the axis
set(h,'XTickLabel',[0;2;4;6;8;10;12;14]);
%显示方格
set(h,'XGrid','on','YGrid','on');
%设置颜色、字体等属性
set(h,'XColor',[0 0 0.7],...
'YColor',[0 0 0.7],...
'ZColor',[0 0 0.7],...
'Color',[.9 .9 .9],...
'GridLineStyle','--',...
'ZTickLabel','-1|Z = 0 Plane|+1',...
'FontName','times',...
'FontAngle','italic',...
'FontSize',14);
%定义X坐标和Y坐标的标签名
set(get(h,'XLabel'),'String','Values of X',...
'FontName','times',...
'FontAngle','italic',...
'FontSize',14);
set(get(h,'YLabel'),'String','Values of Y',...
'FontName','times',...
'FontAngle','italic',...
'FontSize',14)
%定义图形标题名
set(get(h,'Title'),'String','/fontname{times}/ity=sin(x)',...
'FontName','times',...
'Color',[0 0 0.7],...
'FontSize',14);
0 0
- matlab中axes用法
- MATLAB中axes函数
- Matlab中axes函数解析
- matplotlib中Axes的用法札记
- Matlab GUI 中多Axes下的鼠标动态跟踪
- MATLAB中GUI的使用技巧(1)之axes
- Matlab axes的使用
- matlab find axes
- matlab 从figure获得axes
- matlab坐标轴axes显示问题
- Matlab GUI 中多Axes下的鼠标动态跟踪[windowbuttonmotionfcn 函数]
- 关于matlab的gui中调获取axes里data cursor的坐标位置
- Matlab的GUI中figure的WindowButtonDownFcn与axes的ButtonDownFcn
- 关于matlab GUI 中 多个plot(handles.axes) 无法hold on的问题
- currentpoint in axes and figure matlab
- Matlab常用函数axes和axis
- Matlab---在多个axes之间切换
- [Matlab] 如何将axes填充整个Figure
- 顺序栈
- Java 实现网站当前在线用户统计
- 4Sum-LeetCode
- UVA1213 Sum of Different Primes(素数打表+dp)
- 聚类算法——K临近(KNN)
- matlab中axes用法
- 链式栈
- 聚类算法——K-means
- 【cocos2d-x 3.5】Lua的简单面向对象
- RedHat Linux 实现root身份的Telnet登录
- 很强大的 Swipe Layout:AndroidSwipeLayout
- UVA 1210 Sum of Consecutive Prime Numbers(数论)
- 在linux中配置安装telnet服务
- uoj 104 [apio2014 T2]