Hellofetz 发表于 2020-11-5 12:16:08

怎么用matplotbib绘制光的折射图

假设我把空气分层10层
每层折射率都是线性变化 (近地面折射率小
有一束光照进来 光线发生偏折
我想用python绘制出这样一条折线
请问下怎么实现啊
主要问题是这个折线没法定义x轴
https://image.baidu.com/search/detail?ct=503316480&z=0&ipn=d&word=%E6%B5%B7%E5%B8%82%E8%9C%83%E6%A5%BC%E5%8E%9F%E7%90%86&step_word=&hs=0&pn=0&spn=0&di=16060&pi=0&rn=1&tn=baiduimagedetail&is=0%2C0&istype=2&ie=utf-8&oe=utf-8&in=&cl=2&lm=-1&st=-1&cs=3381861337%2C2851854481&os=523917038%2C796619199&simid=4099689580%2C574425035&adpicid=0&lpn=0&ln=300&fr=&fmq=1604549746240_R&fm=result&ic=&s=undefined&hd=&latest=&copyright=&se=&sme=&tab=0&width=&height=&face=undefined&ist=&jit=&cg=&bdtype=0&oriquery=&objurl=http%3A%2F%2Fs9.rr.itc.cn%2Fr%2FwapChange%2F201611_21_14%2Fa4qb4e3819683527325.jpg&fromurl=ippr_z2C%24qAzdH3FAzdH3Fooo_z%26e3Bfz373tg2_z%26e3BvgAzdH3F%3Ff%3D%25Ec%25Ab%25B9%25Ec%25Bn%25Ba%25E0%25AB%25Bm%25El%25ln%25lA%25Ec%25bm%25Al%25En%25bd%25BC%25El%25bD%25lb%25E0%25bm%25BA%25Em%25bd%25bA&gsm=1&rpstart=0&rpnum=0&islist=&querylist=&force=undefined
类似这个图

Hellofetz 发表于 2020-11-8 19:16:43

有人吗
页: [1]
查看完整版本: 怎么用matplotbib绘制光的折射图