# public matplotlib /matplotlib

### Subversion checkout URL

You can clone with HTTPS or Subversion.

# Histogram output in PDF is mashed#2013

Closed
opened this Issue · 3 comments

### 2 participants

Collaborator
commented
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.xlabel('Smarts')
plt.ylabel('Probability')
plt.title('Histogram of IQ')
plt.text(60, .025, r'$\mu=100,\ \sigma=15$')
plt.axis([40, 160, 0, 0.03])
plt.grid(True)
plt.savefig('test.pdf')

Collaborator
commented

closed this
Collaborator
commented

Sorry about that - my branch was borked. False alarm.

Owner
commented

Ah -- I was just going to say. I've run into this when things don't get fully rebuilt like they should. (distutils doesn't do C++ header file dependency resolution, so it doesn't always rebuild correctly).