FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
matplotlib.github.com/pyplots/pyplot_scales.py at master · njisrawi/matplotlib.github.com · GitHub
njisrawi
/
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
/
pyplots
/
pyplot_scales.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
43 lines (34 loc) · 679 Bytes
Breadcrumbs
matplotlib.github.com
/
pyplots
/
pyplot_scales.py
Copy path
File metadata and controls
43 lines (34 loc) · 679 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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import
numpy
as
np
import
matplotlib
.
pyplot
as
plt
# make up some data in the interval ]0, 1[
y
=
np
.
random
.
normal
(
loc
=
0.5
,
scale
=
0.4
,
size
=
1000
)
y
=
y
[(
y
>
0
)
&
(
y
<
1
)]
y
.
sort
()
x
=
np
.
arange
(
len
(
y
))
# plot with various axes scales
plt
.
figure
(
1
)
# linear
plt
.
subplot
(
221
)
plt
.
plot
(
x
,
y
)
plt
.
yscale
(
'linear'
)
plt
.
title
(
'linear'
)
plt
.
grid
(
True
)
# log
plt
.
subplot
(
222
)
plt
.
plot
(
x
,
y
)
plt
.
yscale
(
'log'
)
plt
.
title
(
'log'
)
plt
.
grid
(
True
)
# symmetric log
plt
.
subplot
(
223
)
plt
.
plot
(
x
,
y
-
y
.
mean
())
plt
.
yscale
(
'symlog'
,
linthreshy
=
0.05
)
plt
.
title
(
'symlog'
)
plt
.
grid
(
True
)
# logit
plt
.
subplot
(
224
)
plt
.
plot
(
x
,
y
)
plt
.
yscale
(
'logit'
)
plt
.
title
(
'logit'
)
plt
.
grid
(
True
)
plt
.
show
()
Back
|
FazBrowse Home
|
New Git URL