首页 > 编程知识 正文

julia如何将多个曲线画在一张图里

时间:2023-05-03 12:41:20 阅读:274556 作者:443

# 本例子使用PyPlot包,使用之前要安装PyPlot,安装教程网上就有,百度即可# 示例代码如下using PyPlotn = 10 # 线条数x = rand( n, n )for i in 1:size(x,1) plot( x[:,i] )end# 再给出第二个示例代码using PyPlotx = 0:0.001:1y1 = x.^2y2 = x.^3y = zeros( length(x),2 )y[:,1] = y1y[:,2] = y2for i in 1:2 plot( x, y[:,i] )end

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。