Notebook
fig,ax=plt.subplots(2,2,figsize=(12,12)) ax=ax.flatten() for yr in range(2015,2019): dyr=data.loc[(data['Year']==yr)&(~np.isnan(data['Lon']))&(~np.isnan(data['Lat']))&~np.isnan(data['other'])] ax[yr-2015].set_title(yr) ax[yr-2015].contour(navlon,navlat,tmask[0,:,:],(0.5,),colors=('lightgrey',)) m=ax[yr-2015].scatter(dyr['Lon'],dyr['Lat'],c=logt(1.8*(dyr['mod_flagellates']+dyr['mod_ciliates']))-logt(dyr['other']),cmap=cmocean.cm.balance,vmin=-5,vmax=5) fig.colorbar(m,ax=ax[yr-2015])