prettyplot

版本 1.0.0.0 (2.1 KB) 作者: Cris Luengo
Prettier line plots with markers.
1.0K 次下载
更新 2010/4/13

查看许可证

PRETTYPLOT works just like PLOT, but avoids the line and markers being on top of each other. Instead, the line joins the markers without touching them.

Example
figure('position',[200,200,800,600])
hold on
set(gca,'xlim',[-3.2,3.2],'ylim',[-3,3])
x = -pi:pi/10:pi;
y = tan(sin(x)) - sin(tan(x));
h = prettyplot(x,y,'-+b',x,2*cos(x),'-xr','LineWidth',2,'MarkerSize',8);
h = [h;prettyplot(x,randn(size(x)),'-o','LineWidth',1,'MarkerSize',6,'color',[0,0.8,0])];
legend(h(1:2:end),'demo','cos','randn');

引用格式

Cris Luengo (2026). prettyplot (https://ww2.mathworks.cn/matlabcentral/fileexchange/27237-prettyplot), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2009b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Startup and Shutdown 的更多信息
版本 已发布 发行说明
1.0.0.0