FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
matplotlib.github.com/examples/pyplots/pyplot_text.py at master · HalidMahama/matplotlib.github.com · GitHub
HalidMahama
/
matplotlib.github.com
Public
forked from
matplotlib/matplotlib.github.com
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
matplotlib.github.com
/
examples
/
pyplots
/
pyplot_text.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
20 lines (15 loc) · 459 Bytes
Breadcrumbs
matplotlib.github.com
/
examples
/
pyplots
/
pyplot_text.py
Copy path
File metadata and controls
20 lines (15 loc) · 459 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import
numpy
as
np
import
matplotlib
.
pyplot
as
plt
# Fixing random state for reproducibility
np
.
random
.
seed
(
19680801
)
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
.
show
()
Back
|
FazBrowse Home
|
New Git URL