FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
matplotlib.github.com/3.2.0/api/api_changes-1.py at plausible · 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
/
3.2.0
/
api
/
api_changes-1.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (13 loc) · 483 Bytes
Breadcrumbs
matplotlib.github.com
/
3.2.0
/
api
/
api_changes-1.py
Copy path
File metadata and controls
18 lines (13 loc) · 483 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
import
matplotlib
.
pyplot
as
plt
import
numpy
as
np
fig
, (
ax_old
,
ax_new
)
=
plt
.
subplots
(
1
,
2
,
constrained_layout
=
True
)
ax_new
.
set_title
(
'new values (-5, 6)'
)
ax_old
.
set_title
(
'old values (-7, 7)'
)
x
=
np
.
logspace
(
-
8
,
8
,
1024
)
y
=
1e-5
*
np
.
exp
(
-
x
/
1e5
)
+
1e-6
ax_old
.
xaxis
.
get_major_formatter
().
set_powerlimits
((
-
7
,
7
))
ax_old
.
yaxis
.
get_major_formatter
().
set_powerlimits
((
-
7
,
7
))
for
ax
in
[
ax_new
,
ax_old
]:
ax
.
plot
(
x
,
y
)
ax
.
set_xlim
(
0
,
1e6
)
ax
.
set_ylim
(
1e-6
,
1e-5
)
Back
|
FazBrowse Home
|
New Git URL