Mathematica中文论坛-非官方

标题: 豆粑粑 matlab plot 透明 [打印本页]

作者: meatball1982    时间: 2019-10-22 11:00
标题: 豆粑粑 matlab plot 透明
matlab plot设置,要2018b之后可行。

  1. clear all
  2. clc


  3. x=linspace(0,2*pi);

  4. y=cos(x);

  5. % h1=plot(x,y,'linewidth',10)
  6. % plot1.Color(4) = 0.5;


  7. scatter1 = scatter(x,y,'MarkerFaceColor','r','MarkerEdgeColor','k');
  8. % Set property MarkerFaceAlpha and MarkerEdgeAlpha to <1.0
  9. scatter1.MarkerFaceAlpha = .2;
  10. scatter1.MarkerEdgeAlpha = .2;
复制代码







欢迎光临 Mathematica中文论坛-非官方 (http://ilovemathematica.com/) Powered by Discuz! X3.2