Add line(s) to 2D plots with specified colors

版本 1.0.0.0 (1.8 KB) 作者: Semi
ADDLINE_Z adds solid color line(s) in the axes of 2D plot
374.0 次下载
更新时间 2010/9/8

查看许可证

% ADDLINE_Z adds solid color line(s) in the axes passed by handle h_ax
% both 'value' and 'color' can be an array
% 'color' is set to 'k' if not given
%
% Syntax:
% addline_z(h_ax,xy,value,color); %% tested on MATLAB 7.9.0 (R2009b)
% e.g.:
% figure;
% x=[0:0.01:10];
% y=sin(x);
% plot(x,y);
% addline_z(get(gcf,'Children'),'y',[0.2,0.5,0.8],{'r','g','b'});
%
% Description:
% Too simple to be stated here.
%
% Programmed and Copyright by J. Zhang: xyzhangj@physics.ucla.edu
% $Version=0.1 $Date=2010/09/07

引用格式

Semi (2024). Add line(s) to 2D plots with specified colors (https://www.mathworks.com/matlabcentral/fileexchange/28668-add-line-s-to-2d-plots-with-specified-colors), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Annotations 的更多信息
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0