title: Plotting netCDF data with Python: How to change grid?
body: <p>I'm an new one in python and plotting data with Matplotlib. I really need help and thank you in advance for the answers.</p>
  
  <p>So, I have a netCDF file with v-component of wind data. Grid coordinates: points=9600 (240x40) </p>
  
  <p>lon : 0 to 358.5 by 1.5 degrees_east  circular</p>
  
  <p>lat : 88.5 to 30 by -1.5 degrees_north</p>
  
  <p>My code is:</p>
  
  <pre><code>import numpy as np
  import matplotlib
  matplotlib.use('Agg')
  from netCDF4 import Dataset
  from matplotlib.mlab import griddata
  from matplotlib import pyplot as plt
  from mpl_toolkits.basemap import Basemap
  
  #read data from NETcdf file ".nc"
  my_file = '/home/Era-Interim/NH-EraInt-1979.nc'
  fh = Dataset(my_file, mode='r')
  
  lons = fh.variables['lon'][:]
  lats = fh.variables['lat'][:]
  V = fh.variables['V'][:]
  V_units = fh.variables['V'].units
  
  fh.close()
  
  # create figure
  fig = plt.figure(figsize=(20,20))
  
  # create a map
  m = Basemap(projection='nplaea',boundinglat=30,lon_0=10,resolution='l',round=True)
  
  #draw parallels, meridians, coastlines, countries, mapboundary
  m.drawcoastlines(linewidth=0.5)
  m.drawcountries(linewidth=0.5)
  #m.drawmapboundary(linewidth=2)
  
  m.drawparallels(np.arange(30,90,20), labels=[1,1,0,0])  #paral in 10 degree, right, left 
  m.drawmeridians(np.arange(0,360,30), labels=[1,1,1,1])  #merid in 10 degree, bottom
  
  #Plot the data on top of the map
  lon,lat = np.meshgrid(lons,lats)
  x,y = m(lon,lat)
  
  cs = m.pcolor(x,y,np.squeeze(V),cmap=plt.cm.RdBu_r)
  
  plt.title("", fontsize=25, verticalalignment='baseline')
  plt.savefig("/home/Era-Interim/1.png")
  </code></pre>
  
  <p>As a result, I received a map (you can find in my dropbox folder) <a href="https://www.dropbox.com/sh/nvy8wcodk9jtat0/AAC-omkPP8_7uINSSXbzImeja?dl=0" rel="nofollow">https://www.dropbox.com/sh/nvy8wcodk9jtat0/AAC-omkPP8_7uINSSXbzImeja?dl=0</a></p>
  
  <p>On the map, there are white pixels between 358.5 and 0 (360) lon, because I have no data between 358.5 and 0 (360) lon.</p>
  
  <p><strong>The question is: how can I change the size of the grid, regrid it, interpolate data, or something else in order to not have this white sector?</strong></p>