Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 Julia 绘图确实显示了默认标签y1,y2而不是列名a和b.
y1
y2
a
b
using DataFrames, Plots, Statplots df_test = DataFrame(a = 0:10, b = 20:30, c = 30:40) @df df_test plot(:a, [:b, :c])
任何建议如何在不明确命名标签的情况下解决问题?
您需要将第二个参数作为 1 行矩阵传递以获得您想要的:
@df df_test plot(:a, [:b :c])
(注意:b和之间:c没有逗号 - 只有一个空格)
:b
:c