I have a xarray dataset clip_ds and have visualised the data array using plot. Now, I want to add a country boundary using Basemap's drawcountries(). Apparently, there is something wrong with the extent I am using in basemap (I guess), but both the country border and the data plot won't show up together. I have tried interchanging the position of clip_ds.pr[0].plot() before and after I create basemap, and it gives me two different results:
1) This one is when I use xarray plot before basemap. Note that the colorbar from xarray is still there.
2) This is when I use xarray plot after basemap. The tick labels disappears in this case probably overlapped by the basemap box.
3) The Xarray plot only looks like this.
The Issue
I have a xarray dataset
clip_ds
and have visualised the data array using plot. Now, I want to add a country boundary using Basemap'sdrawcountries()
. Apparently, there is something wrong with the extent I am using in basemap (I guess), but both the country border and the data plot won't show up together. I have tried interchanging the position ofclip_ds.pr[0].plot()
before and after I create basemap, and it gives me two different results: 1) This one is when I use xarray plot before basemap. Note that the colorbar from xarray is still there. 2) This is when I use xarray plot after basemap. The tick labels disappears in this case probably overlapped by the basemap box. 3) The Xarray plot only looks like this.Code I have used