首先得到csv格式文件
用pandas读取文件

import pandas as pd
aaa = pd.read_csv('aaa.csv')
x=aaa['SMA']   #选取列
y=aaa['INTENSE']
dy=aaa['INTENSE-error']

绘制误差线

import matplotlib.pyplot as plt
import numpy as np
plt.style.use('seaborn-whitegrid')
plt.errorbar(x, y, dy, fmt='.k', ecolor='lightgray', elinewidth=3 capsize=0)

pyhon读取文件画iraf/ellipse图
画折线图

import matplotlib.pyplot as plt
plt.plot(x,y,label='second line')
plt.xlabel('Radius')
plt.ylabel('INTENSITY')
plt.title('Interesting Graph\nCheck it out')
plt.legend()
plt.show() 

pyhon读取文件画iraf/ellipse图
参考:[1]https://blog.csdn.net/hecongqing/article/details/55522276
[2]https://blog.csdn.net/jasonzhoujx/article/details/81745329?utm_source=blogxgwz5
【3h】https://www.cnblogs.com/kylinlin/p/5231404.html

相关文章:

  • 2022-02-11
  • 2022-01-26
  • 2021-11-19
  • 2022-01-11
  • 2022-12-23
  • 2022-01-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2021-07-07
相关资源
相似解决方案