Mathematica中文论坛-非官方
标题:
豆粑粑 matlab plot 透明
[打印本页]
作者:
meatball1982
时间:
2019-10-22 11:00
标题:
豆粑粑 matlab plot 透明
matlab plot设置,要2018b之后可行。
clear all
clc
x=linspace(0,2*pi);
y=cos(x);
% h1=plot(x,y,'linewidth',10)
% plot1.Color(4) = 0.5;
scatter1 = scatter(x,y,'MarkerFaceColor','r','MarkerEdgeColor','k');
% Set property MarkerFaceAlpha and MarkerEdgeAlpha to <1.0
scatter1.MarkerFaceAlpha = .2;
scatter1.MarkerEdgeAlpha = .2;
复制代码
欢迎光临 Mathematica中文论坛-非官方 (http://ilovemathematica.com/)
Powered by Discuz! X3.2