From charlesreid1

No edit summary
No edit summary
Line 1: Line 1:
{{Stub}}
=Types of Plots=
=Types of Plots=



Revision as of 16:30, 28 May 2011

Stump.gif This article is a stub.

A team of expertly-trained librarian ninjas has been dispatched to research this topic, finish this article, and assassinate all eyewitnesses who contradict their account.

They should be done pretty soon.

Template:Stub

Category:Stubs

Types of Plots

Histogram

from matplotlib import rcParams
from pylab import *

# construct the distribution with a given mean and deviation:
# -----------------------------------------------------------

# mu = mean
# sigma = standard deviation
# randn(10000) creates an array of size 10,000 x 1 that contains random numbers
mu, sigma = 0, 0.5
x = mu + sigma*randn(10000)

# plot the histogram of the data:
# --------------------------

figure(1)

# this will plot the data with the y-axis as the total number of samples (i.e. 350+)
#n, bins, patches = hist(x, 100,)
# this will plot the histogram with a normalized y-axis
n, bins, patches = hist(x, 100, normed=1)