2
# -*- coding: utf-8 -*-
5
from matplotlib import mlab
6
from matplotlib import pyplot
10
# Part of the example at
11
# http://matplotlib.sourceforge.net/plot_directive/mpl_examples/pylab_examples/contour_demo.py
13
x = numpy.arange(-3.0, 3.0, delta)
14
y = numpy.arange(-2.0, 2.0, delta)
15
X, Y = numpy.meshgrid(x, y)
16
Z1 = mlab.bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0)
17
Z2 = mlab.bivariate_normal(X, Y, 1.5, 0.5, 1, 1)
20
CS = pyplot.contour(X, Y, Z)
24
if __name__ == "__main__":