import numpy as np import pandas as pd import matplotlib.pyplot as plt M1 = pd.read_csv('MF.csv', parse_dates=['YEAR'], index_col='YEAR') M1 = pd.read_csv('MF.csv', parse_dates=['YEAR'], index_col='YEAR') M1.plot(linewidth=1,color="k",xlabel = 'Time',ylabel = 'Scalar B, nT', title = 'Hourly Magnetic field from 1964 to 2021'). from pylab import rcParams rcParams['figure.figsize'] = 14,10 plt.savefig('Hourly.png', format='png', dpi=1200) plt.grid(False) plt.show()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)