np
(
19680801
)
def
color_cycle_example
(
ax
):
L
=
6
x
=
(
0
,
L
)
ncolors
=
len
(
[
'axes.prop_cycle'
])
shift
=
(
0
,
L
,
ncolors
,
endpoint
=
False
)
for
s
in
shift
:
ax
.
plot
(
x
,
(
x
+
s
),
'o-'
)
def
image_and_patch_example
(
ax
):
ax
.
imshow
(
(
size
=
(
20
,
20
)),
interpolation
=
'none'
)
c
=
((
5
,
5
),
radius
=
5
,
label
=
'patch'
)
ax
.
add_patch
(
c
)
plt
.
style
.
use
(
'grayscale'
)
,
(
,
)
=
(
ncols
=
2
)
(
"'grayscale' style sheet"
)
color_cycle_example
(
)
image_and_patch_example
(
)
()