Skip to main content

7.3) Filled Contour Plots


In order to create a filled contour plot, we simply add the "/fill" keyword in the call to contour:

contour, q(*,*,20,0), lon, lat, xrange=[-30,40], yrange=[0,40], xstyle=1, levels=levs, c_labels=labels, /fill

We can also "overplot" contours onto an existing plot. So for example, if we plot our water vapour fields as a filled contour plot we can overlay the temperature data as contour lines using the keyword "/overplot":

contour, q(*,*,20,0), lon, lat, xrange=[-30,40], yrange=[0,40], xstyle=1, levels=levs, c_labels=labels, /fill
contour, q(*,*,20,0), lon, lat, levels=indgen(25)*5.+270., c_labels=labels, /overplot

Your plot should now look like the plot below: