美文网首页
2021-08-13 matlab plot点线颜色设置

2021-08-13 matlab plot点线颜色设置

作者: 低维量子系统 | 来源:发表于2021-08-13 16:45 被阅读0次

matlab自己能够给多条曲线分配好漂亮的颜色。
但如果需要在各条曲线上标识出数据点时,
点与线的颜色保持一致才好看。

方法分两步:

  1. h1 = plot(x,y)
    颜色由matlab自行制定

  2. plot(x1,y2,'Color', h1.Color)
    颜色由h1中的颜色来决定

相关文章

网友评论

      本文标题:2021-08-13 matlab plot点线颜色设置

      本文链接:https://www.haomeiwen.com/subject/mfqjbltx.html