MATLAB 画Line _Plot 2D
2017-02-07 11:10
351 查看
% Load data for the stock indices
load IndexData dates values series
% Plot the stock index values versus time
figure
plot(dates, values)
% Use dateticks for the x axis
datetick(‘x’)
% Add title and axis labels
xlabel(‘Date’)
ylabel(‘Index Value’)
title(‘Relative Daily Index Closings’)
% Add a legend in the top, left corner
legend(series, ‘Location’, ‘NorthWest’)
load IndexData dates values series
% Plot the stock index values versus time
figure
plot(dates, values)
% Use dateticks for the x axis
datetick(‘x’)
% Add title and axis labels
xlabel(‘Date’)
ylabel(‘Index Value’)
title(‘Relative Daily Index Closings’)
% Add a legend in the top, left corner
legend(series, ‘Location’, ‘NorthWest’)
相关文章推荐
- matlab 2D plot 绘图函数
- python 绘图添加图例显示UserWarning: Legend does not support [<matplotlib.lines.Line2D object at 0x07FA3210>]
- matlab gui(二)对象(axes,line[ezplot,plot],回调函数的写法)
- matlab基础——LinePlots and Subplots
- Matplotlib:仿Matlab的Python的2D图形库
- matlab plot line settings
- matlab通过两点画线问题&&plot,line的用法和区别。
- Python 添加图例出错:UserWarning: Legend does not support [<matplotlib.lines.Line2D object at 0x07FA3210>]
- matlab handle plot
- matlab 画图plot 标记符大小调整和填充
- Matlab 绘制 clustered rowstacked bar plot
- Matlab中使用Plot函数动态画图方法总结
- Matlab中plot函数及legend函数详解
- direct2d: antialiasing and drawing a line with a 1 pixel stroke
- MATLAB 2D 矩阵围绕中心旋转
- LINKAXES matlab plot
- How can I plot an image (.jpg) in MATLAB in both 2-D and 3-D?
- Matlab中plot函数及图形修饰说明
- matlab plot 属性设置
- 【matlab】plot