Re: [Tutor] Overlay Quiver Plot on Contours

2015-01-26 Thread Danny Yoo
>> and I am getting this error: >> >> TypeError: You must first set_array for mappable >> >> Can anyone provide guidance on how you overlay quiver plots on top of >> contours? > > > This list is for newcomers to Python and its standard > library. This looks like a fairly specific SciPy/Numpy, > and

Re: [Tutor] Overlay Quiver Plot on Contours

2015-01-26 Thread Alan Gauld
On 26/01/15 23:24, Felisha Lawrence wrote: Hello, I have the following script: import netCDF4 import numpy as np import matplotlib.pyplot as plt import pylab ... and I am getting this error: TypeError: You must first set_array for mappable Can anyone provide guidance on how you overlay quive

[Tutor] Overlay Quiver Plot on Contours

2015-01-26 Thread Felisha Lawrence
Hello, I have the following script: import netCDF4 import numpy as np import matplotlib.pyplot as plt import pylab ncfile = netCDF4.Dataset('30JUNE2012_0300UTC.cdf', 'r') dbZ = ncfile.variables['MAXDBZF'] data = dbZ[0,0] data.shape x = np.array([0,10,11]) y = np.array([0,15,16]) X,Y = np.meshgri