import iris
import matplotlib.pyplot as plt
import iris.plot as iplt
import iris.quickplot as qplt
iris.FUTURE.netcdf_promote=True
filename= '~/OEH_DAY_1990-2009_ffdi.nc'
file=iris.load_cube(filename)
plot_line = file.collapsed('time', iris.analysis.MEAN)
print plot_line
plt.figure()
contour = qplt.contourf(plot_line,80)
plt.gca().coastlines()
plt.title('1990-2009 FFDI mean over time')
plt.show()
And this is the error I'm getting:
AttributeError: 'AxesSubplot' object has no attribute 'coastlines'
I do not get this error for the plt.title. Does anyone know what is going wrong here?
Thanks,
Steph
--
You received this message because you are subscribed to the Google Groups "SciTools (iris, cartopy, cf_units, etc.) - https://github.com/scitools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scitools-iris+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.