xarray.plot.contour not printing contour labels

Viewed 102

I am trying something like this:

import xarray as xr
import numpy as np

(lon,lat)=np.meshgrid(np.arange(0,6,1),np.arange(0,6,1))

da_data=xr.DataArray(data=np.random.randn(6,6),dims=['y','x'],
                     coords=dict(LAT=(['y','x'],lat), LON=(['y','x'],lon)) )
da_data.plot.contour(kwargs=dict(inline=True))

I can see the contours but no labels. What am I doing wrong?

1 Answers
Related