9
using Plots
plot(1:1:5, 1:1:5, linewidth=1)
plot!(1:1:5, 1:2:10, linewidth=5)

是否可以使图例线宽与图中的线宽相匹配?不幸的是,我在文档中找不到任何内容。

在此处输入图像描述

4

1 回答 1

3

试试这个:

using Plots
plot(1:1:5, 1:1:5, linewidth=1)
plot!(1:1:5, 1:2:10, linewidth=5, thickness_scaling = 1)

结果输出如下: 在此处输入图像描述

于 2020-07-02T06:49:48.017 回答