J
Jamie Mitchell
I am new to python so apologies for the ignorance with this question.
How would I apply a line of best fit to a plot?
My data are netCDF4 data files and this is essentially what I have done so far:
swh1=netCDF4.Dataset('filename','r')
hs1=swh1.variables['hs']
swh2=netCDF4.Dataset('filename'.'r')
hs2=swh2.variables['hs']
plt.plot(hs1,hs2,'.')
Cheers,
Jamie
How would I apply a line of best fit to a plot?
My data are netCDF4 data files and this is essentially what I have done so far:
swh1=netCDF4.Dataset('filename','r')
hs1=swh1.variables['hs']
swh2=netCDF4.Dataset('filename'.'r')
hs2=swh2.variables['hs']
plt.plot(hs1,hs2,'.')
Cheers,
Jamie