FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
matplotlib/examples/api/quad_bezier.py at master · feisuo/matplotlib · GitHub
feisuo
matplotlib
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
matplotlib
/
examples
/
api
/
quad_bezier.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (13 loc) · 435 Bytes
Breadcrumbs
matplotlib
/
examples
/
api
/
quad_bezier.py
Copy path
File metadata and controls
17 lines (13 loc) · 435 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
matplotlib
.
path
as
mpath
import
matplotlib
.
patches
as
mpatches
import
matplotlib
.
pyplot
as
plt
Path
=
mpath
.
Path
fig
,
ax
=
plt
.
subplots
()
pp1
=
mpatches
.
PathPatch
(
Path
([(
0
,
0
), (
1
,
0
), (
1
,
1
), (
0
,
0
)],
[
Path
.
MOVETO
,
Path
.
CURVE3
,
Path
.
CURVE3
,
Path
.
CLOSEPOLY
]),
fc
=
"none"
,
transform
=
ax
.
transData
)
ax
.
add_patch
(
pp1
)
ax
.
plot
([
0.75
], [
0.25
],
"ro"
)
ax
.
set_title
(
'The red point should be on the path'
)
plt
.
show
()
Back
|
FazBrowse Home
|
New Git URL