FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
matplotlib.github.com/1.3.1/pyplots/pyplot_text.py at main · matplotlib/matplotlib.github.com · GitHub
matplotlib
/
matplotlib.github.com
Public
Notifications
You must be signed in to change notification settings
Fork
62
Star
29
Code
Issues
1
Pull requests
2
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
matplotlib.github.com
/
1.3.1
/
pyplots
/
pyplot_text.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (13 loc) · 391 Bytes
Breadcrumbs
matplotlib.github.com
/
1.3.1
/
pyplots
/
pyplot_text.py
Copy path
File metadata and controls
17 lines (13 loc) · 391 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
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
.
show
()
Back
|
FazBrowse Home
|
New Git URL