FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
matplotlib.github.com/2.2.2/users/dflt_style_changes-17.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
/
2.2.2
/
users
/
dflt_style_changes-17.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (21 loc) · 712 Bytes
Breadcrumbs
matplotlib.github.com
/
2.2.2
/
users
/
dflt_style_changes-17.py
Copy path
File metadata and controls
28 lines (21 loc) · 712 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
import
matplotlib
as
mpl
import
matplotlib
.
pyplot
as
plt
import
numpy
as
np
th
=
np
.
linspace
(
0
,
2
*
np
.
pi
,
128
)
y
=
np
.
sin
(
th
)
def
demo
(
fig
,
rcparams
,
title
,
j
):
np
.
random
.
seed
(
2
)
with
mpl
.
rc_context
(
rc
=
rcparams
):
ax
=
fig
.
add_subplot
(
2
,
2
,
j
)
ax
.
hist
(
np
.
random
.
beta
(
0.5
,
0.5
,
10000
),
25
,
normed
=
True
)
ax
.
set_xlim
([
0
,
1
])
ax
.
set_title
(
title
)
ax
=
fig
.
add_subplot
(
2
,
2
,
j
+
2
)
ax
.
imshow
(
np
.
random
.
rand
(
5
,
5
))
classic
=
{
'xtick.direction'
:
'in'
,
'ytick.direction'
:
'in'
,
'xtick.top'
:
True
,
'ytick.right'
:
True
}
fig
=
plt
.
figure
(
figsize
=
(
6
,
6
),
tight_layout
=
True
)
demo
(
fig
,
classic
,
'classic'
,
1
)
demo
(
fig
, {},
'v2.0'
,
2
)
Back
|
FazBrowse Home
|
New Git URL