[Matplotlib-devel] Please I am getting error message when running this code in Python.

vishal vishal.goundar at gmail.com
Tue May 3 01:34:04 EDT 2016

>>> import numpy as np
import matplotlib.pyplot as plt

mu, sigma = 100, 15
x = mu + sigma * np.random.randn(10000)

# the histogram of the data
n, bins, patches = plt.hist(x, 50, normed=1, facecolor='g', alpha=0.75)

plt.title('Histogram of IQ')
plt.text(60, .025, r'$\mu=100,\ \sigma=15$')
plt.axis([40, 160, 0, 0.03])
SyntaxError: multiple statements found while compiling a single statement

View this message in context: http://matplotlib.1069221.n5.nabble.com/Please-I-am-getting-error-message-when-running-this-code-in-Python-tp47047.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.

More information about the Matplotlib-devel mailing list