Skip to content

Commit d11440e

Browse files
authored
Merge pull request OmkarPathak#71 from OmkarPathak/dev
Dev
2 parents 830140c + 4062b8a commit d11440e

File tree

113 files changed

+938
-72
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+938
-72
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
from utils import create_newfig, create_moving_polygon, create_still_polygon, run_or_export
2+
3+
func_code = 'am'
4+
func_name = 'test_one_moving_one_stationary_distlimit_no_intr'
5+
6+
def setup_fig01():
7+
fig, ax, renderer = create_newfig('{}01'.format(func_code))
8+
9+
create_moving_polygon(fig, ax, renderer, ((0, 2), (0, 3), (1, 3), (1, 2)), (4, 0), 'topright')
10+
create_still_polygon(fig, ax, renderer, ((2, 0), (3, 1), (4, 0)), 'botleft')
11+
return fig, ax, '{}01_{}'.format(func_code, func_name)
12+
13+
def setup_fig02():
14+
fig, ax, renderer = create_newfig('{}02'.format(func_code))
15+
16+
create_moving_polygon(fig, ax, renderer, ((1, 3), (1, 4), (2, 4), (2, 3)), (5, -3), 'topright')
17+
create_still_polygon(fig, ax, renderer, ((0, 1), (2, 2), (3, 1), (2, 0)), 'botleft')
18+
return fig, ax, '{}02_{}'.format(func_code, func_name)
19+
20+
def setup_fig03():
21+
fig, ax, renderer = create_newfig('{}03'.format(func_code))
22+
23+
create_moving_polygon(fig, ax, renderer, ((2, 4), (3, 4), (3, 3), (1, 3)), (3, -2), 'topright')
24+
create_still_polygon(fig, ax, renderer, ((0, 1), (2, 2), (3, 0), (2, 0)), 'botleft')
25+
return fig, ax, '{}03_{}'.format(func_code, func_name)
26+
27+
def setup_fig04():
28+
fig, ax, renderer = create_newfig('{}04'.format(func_code))
29+
30+
create_moving_polygon(fig, ax, renderer, ((4, 1.75), (5, 2.5), (6, 2.5), (4, 1.25)), (-2, 1), 'topright')
31+
create_still_polygon(fig, ax, renderer, ((0, 1), (2, 2), (3, 1), (2, 0)), 'botleft')
32+
return fig, ax, '{}04_{}'.format(func_code, func_name)
33+
34+
run_or_export(setup_fig01, setup_fig02, setup_fig03, setup_fig04)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
from utils import create_newfig, create_moving_polygon, create_still_polygon, run_or_export
2+
3+
func_code = 'an'
4+
func_name = 'test_one_moving_one_stationary_distlimit_touching'
5+
6+
def setup_fig01():
7+
fig, ax, renderer = create_newfig('{}01'.format(func_code))
8+
9+
create_moving_polygon(fig, ax, renderer, ((0, 2), (0, 3), (1, 3), (1, 2)), (5, -1.25), 'topright')
10+
create_still_polygon(fig, ax, renderer, ((3, 0), (3, 1), (4, 1), (4, 0)), 'botleft')
11+
return fig, ax, '{}01_{}'.format(func_code, func_name)
12+
13+
def setup_fig02():
14+
fig, ax, renderer = create_newfig('{}02'.format(func_code))
15+
16+
create_moving_polygon(fig, ax, renderer, ((1, 2), (1, 3), (2, 3), (2, 2)), (4, 0), 'topright')
17+
create_still_polygon(fig, ax, renderer, ((2, 1), (4, 2), (5, 0), (1, 0)), 'botleft')
18+
return fig, ax, '{}02_{}'.format(func_code, func_name)
19+
20+
def setup_fig03():
21+
fig, ax, renderer = create_newfig('{}03'.format(func_code))
22+
23+
create_moving_polygon(fig, ax, renderer, ((2, 4), (3, 4), (3, 2), (1, 3)), (3, -2), 'topright')
24+
create_still_polygon(fig, ax, renderer, ((0, 1), (2.5, 2), (3, 0), (2, 0)), 'botleft')
25+
return fig, ax, '{}03_{}'.format(func_code, func_name)
26+
27+
def setup_fig04():
28+
fig, ax, renderer = create_newfig('{}04'.format(func_code))
29+
30+
create_moving_polygon(fig, ax, renderer, ((0, 0), (1, 2), (2, 1)), (3, 3), 'topright')
31+
create_still_polygon(fig, ax, renderer, ((3, 2), (5, 3), (5, 1)), 'botleft')
32+
return fig, ax, '{}04_{}'.format(func_code, func_name)
33+
34+
run_or_export(setup_fig01, setup_fig02, setup_fig03, setup_fig04)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
from utils import create_newfig, create_moving_polygon, create_still_polygon, run_or_export
2+
3+
func_code = 'ao'
4+
func_name = 'test_one_moving_one_stationary_distlimit_intr_at_start'
5+
6+
def setup_fig01():
7+
fig, ax, renderer = create_newfig('{}01'.format(func_code))
8+
9+
create_moving_polygon(fig, ax, renderer, ((3, 1), (3, 3), (4, 3), (4, 1)), (2, 0), 'topright')
10+
create_still_polygon(fig, ax, renderer, ((3, 0), (3, 1), (4, 1), (4, 0)), 'botleft')
11+
return fig, ax, '{}01_{}'.format(func_code, func_name)
12+
13+
def setup_fig02():
14+
fig, ax, renderer = create_newfig('{}02'.format(func_code))
15+
16+
create_moving_polygon(fig, ax, renderer, ((3, 1), (3, 3), (4, 3), (4, 1)), (2, -0.25), 'topright')
17+
create_still_polygon(fig, ax, renderer, ((3, 0), (3, 1), (4, 1), (4, 0)), 'botleft')
18+
return fig, ax, '{}02_{}'.format(func_code, func_name)
19+
20+
def setup_fig03():
21+
fig, ax, renderer = create_newfig('{}03'.format(func_code), ylim=(-1, 7))
22+
23+
create_moving_polygon(fig, ax, renderer, ((2, 4), (3, 4), (3, 2), (1, 1)), (-1, 2), 'topright')
24+
create_still_polygon(fig, ax, renderer, ((0, 1), (2.5, 2), (3, 0), (2, 0)), 'botleft')
25+
return fig, ax, '{}03_{}'.format(func_code, func_name)
26+
27+
def setup_fig04():
28+
fig, ax, renderer = create_newfig('{}04'.format(func_code), ylim=(-2, 5))
29+
30+
create_moving_polygon(fig, ax, renderer, ((4, 0), (5, 2), (3, 2)), (0, 3), 'topright')
31+
create_still_polygon(fig, ax, renderer, ((3, 0), (5, 1), (5, -1)), 'botleft')
32+
return fig, ax, '{}04_{}'.format(func_code, func_name)
33+
34+
run_or_export(setup_fig01, setup_fig02, setup_fig03, setup_fig04)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
from utils import create_newfig, create_moving_polygon, create_still_polygon, run_or_export
2+
3+
func_code = 'ap'
4+
func_name = 'test_one_moving_one_stationary_distlimit_intr_later'
5+
6+
def setup_fig01():
7+
fig, ax, renderer = create_newfig('{}01'.format(func_code), xlim=(-1, 10), ylim=(-1, 7))
8+
9+
create_moving_polygon(fig, ax, renderer, ((2, 2), (2, 3, 'topleft'), (3, 3), (3, 2)), (5, 3), 'none')
10+
create_still_polygon(fig, ax, renderer, ((3, 5, 'topleft'), (4, 5), (4, 4), (3, 4)), 'none')
11+
return fig, ax, '{}01_{}'.format(func_code, func_name)
12+
13+
def setup_fig02():
14+
fig, ax, renderer = create_newfig('{}02'.format(func_code), xlim=(-1, 10), ylim=(-1, 7))
15+
16+
create_moving_polygon(fig, ax, renderer, ((8, 5), (6, 3), (7, 3)), (-4, -3), 'topright')
17+
create_still_polygon(fig, ax, renderer, ((4, 3), (4.5, 3.5), (7, 1), (6, 0)), 'top')
18+
return fig, ax, '{}02_{}'.format(func_code, func_name)
19+
20+
def setup_fig03():
21+
fig, ax, renderer = create_newfig('{}03'.format(func_code))
22+
23+
create_moving_polygon(fig, ax, renderer, ((6, 3), (6, 2), (5, 1), (4, 3)), (-3, 0), 'topright')
24+
create_still_polygon(fig, ax, renderer, ((4, 1.25, 'top'), (5, 0, 'none'), (3, 0, 'none')))
25+
return fig, ax, '{}03_{}'.format(func_code, func_name)
26+
27+
def setup_fig04():
28+
fig, ax, renderer = create_newfig('{}04'.format(func_code), ylim=(-1, 6))
29+
30+
create_moving_polygon(fig, ax, renderer, ((5, 0), (6, 1), (2, 1)), (0, 4), 'topright')
31+
create_still_polygon(fig, ax, renderer, ((3, 3, 'top'), (4, 3), (4, 2), (3, 2)), 'none')
32+
return fig, ax, '{}04_{}'.format(func_code, func_name)
33+
34+
run_or_export(setup_fig01, setup_fig02, setup_fig03, setup_fig04)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
from utils import create_newfig, create_moving_polygon, create_still_polygon, run_or_export
2+
3+
func_code = 'aq'
4+
func_name = 'test_one_moving_one_stationary_distlimit_touch_at_limit'
5+
6+
def setup_fig01():
7+
fig, ax, renderer = create_newfig('{}01'.format(func_code), ylim=(-1, 7))
8+
9+
create_moving_polygon(fig, ax, renderer, ((0, 0), (0, 1), (1, 1), (1, 0)), (4, 3), 'none')
10+
create_still_polygon(fig, ax, renderer, ((3, 5, 'topleft'), (4, 5), (4, 4), (3, 4)), 'none')
11+
return fig, ax, '{}01_{}'.format(func_code, func_name)
12+
13+
def setup_fig02():
14+
fig, ax, renderer = create_newfig('{}02'.format(func_code), xlim=(-1, 8), ylim=(-1, 7))
15+
16+
create_moving_polygon(fig, ax, renderer, ((4, 4), (5, 6), (4, 3)), (2, -1.5), 'topright')
17+
create_still_polygon(fig, ax, renderer, ((1, 3), (2, 3.5), (7, 1), (6, 0)), 'top')
18+
return fig, ax, '{}02_{}'.format(func_code, func_name)
19+
20+
def setup_fig03():
21+
fig, ax, renderer = create_newfig('{}03'.format(func_code))
22+
23+
create_moving_polygon(fig, ax, renderer, ((6, 3), (6, 2), (5, 1), (4, 3)), (-3, 0), 'topright')
24+
create_still_polygon(fig, ax, renderer, ((0, 3, 'none'), (1, 3), (2, 1), (0, 1, 'none')))
25+
return fig, ax, '{}03_{}'.format(func_code, func_name)
26+
27+
def setup_fig04():
28+
fig, ax, renderer = create_newfig('{}04'.format(func_code))
29+
30+
create_moving_polygon(fig, ax, renderer, ((5, 0, 'none'), (6, 1), (2, 1)), (0, 2), 'topright')
31+
create_still_polygon(fig, ax, renderer, ((3, 4, 'top'), (4, 4), (4, 3), (3, 3)), 'none')
32+
return fig, ax, '{}04_{}'.format(func_code, func_name)
33+
34+
run_or_export(setup_fig01, setup_fig02, setup_fig03, setup_fig04)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
from utils import create_newfig, create_moving_polygon, create_still_polygon, run_or_export
2+
3+
func_code = 'ar'
4+
func_name = 'test_one_moving_one_stationary_distlimit_intr_after_limit'
5+
6+
def setup_fig01():
7+
fig, ax, renderer = create_newfig('{}01'.format(func_code), ylim=(-1, 7))
8+
9+
create_moving_polygon(fig, ax, renderer, ((0, 0), (0, 1), (1, 1), (1, 0)), (4, 3), 'none')
10+
create_still_polygon(fig, ax, renderer, ((5.5, 5.5, 'topleft'), (6.5, 5.5), (6.5, 4.5), (5.5, 4.5)), 'none')
11+
return fig, ax, '{}01_{}'.format(func_code, func_name)
12+
13+
def setup_fig02():
14+
fig, ax, renderer = create_newfig('{}02'.format(func_code), xlim=(-1, 8), ylim=(-1, 7))
15+
16+
create_moving_polygon(fig, ax, renderer, ((4, 4), (5, 6), (4, 3)), (1.2, -0.9), 'topright')
17+
create_still_polygon(fig, ax, renderer, ((1, 3), (2, 3.5), (7, 1), (6, 0)), 'top')
18+
return fig, ax, '{}02_{}'.format(func_code, func_name)
19+
20+
def setup_fig03():
21+
fig, ax, renderer = create_newfig('{}03'.format(func_code))
22+
23+
create_moving_polygon(fig, ax, renderer, ((6, 3), (6, 2), (5, 1), (4, 3)), (-2.5, 0), 'topright')
24+
create_still_polygon(fig, ax, renderer, ((0, 3, 'none'), (1, 3), (2, 1), (0, 1, 'none')))
25+
return fig, ax, '{}03_{}'.format(func_code, func_name)
26+
27+
def setup_fig04():
28+
fig, ax, renderer = create_newfig('{}04'.format(func_code))
29+
30+
create_moving_polygon(fig, ax, renderer, ((5, 0, 'none'), (6, 1), (2, 1)), (0, 1.75), 'topright')
31+
create_still_polygon(fig, ax, renderer, ((3, 4, 'top'), (4, 4), (4, 3), (3, 3)), 'none')
32+
return fig, ax, '{}04_{}'.format(func_code, func_name)
33+
34+
run_or_export(setup_fig01, setup_fig02, setup_fig03, setup_fig04)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
from utils import create_newfig, create_moving_polygon, create_still_polygon, run_or_export
2+
3+
func_code = 'as'
4+
func_name = 'test_one_moving_one_stationary_along_path_no_intr'
5+
6+
def setup_fig01():
7+
fig, ax, renderer = create_newfig('{}01'.format(func_code), ylim=(-1, 7))
8+
9+
create_moving_polygon(fig, ax, renderer, ((0, 0), (0, 1), (1, 1), (1, 0)), (4, 3), 'none')
10+
create_still_polygon(fig, ax, renderer, ((3, 1, 'botright'), (4, 1), (4, 0), (3, 0)), 'none')
11+
return fig, ax, '{}01_{}'.format(func_code, func_name)
12+
13+
def setup_fig02():
14+
fig, ax, renderer = create_newfig('{}02'.format(func_code), xlim=(-2, 12), ylim=(-1, 10))
15+
16+
create_moving_polygon(fig, ax, renderer, ((11, 5), (8, 8), (7, 7), (6, 3), (9, 3), (11, 5)), (-1, -3))
17+
create_still_polygon(fig, ax, renderer, ((3.5, 8.5), (1.5, 8.5), (1.5, 8.5), (-0.5, 7.5), (0.5, 3.5), (1.5, 2.5), (4.5, 2.5), (5.5, 6.5)))
18+
return fig, ax, '{}02_{}'.format(func_code, func_name)
19+
20+
def setup_fig03():
21+
fig, ax, renderer = create_newfig('{}03'.format(func_code), xlim=(-3, 9), ylim=(-1, 15))
22+
23+
create_moving_polygon(fig, ax, renderer, ((0.5, 9.0), (-1.5, 8.0), (-1.5, 6.0), (1.5, 5.0), (2.5, 5.0), (2.5, 9.0)), (0, 5))
24+
create_still_polygon(fig, ax, renderer, ((7.0, 6.0), (4.0, 5.0), (4.0, 3.0), (6.0, 2.0), (8.0, 3.0), (7.0, 6.0)))
25+
return fig, ax, '{}03_{}'.format(func_code, func_name)
26+
27+
def setup_fig04():
28+
fig, ax, renderer = create_newfig('{}04'.format(func_code), xlim=(-2, 12), ylim=(-3, 10))
29+
30+
create_moving_polygon(fig, ax, renderer, ((5.5, 4.5), (3.5, -1.5), (9.5, -1.5), (10.5, 0.5)), (-4, 0))
31+
create_still_polygon(fig, ax, renderer, ((7.5, 8.5), (7.5, 8.5), (6.5, 5.5), (7.5, 4.5), (9.5, 4.5), (10.5, 7.5)))
32+
return fig, ax, '{}04_{}'.format(func_code, func_name)
33+
34+
run_or_export(setup_fig01, setup_fig02, setup_fig03, setup_fig04)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
from utils import create_newfig, create_moving_polygon, create_still_polygon, run_or_export
2+
3+
func_code = 'at'
4+
func_name = 'test_one_moving_one_stationary_along_path_touching'
5+
6+
def setup_fig01():
7+
fig, ax, renderer = create_newfig('{}01'.format(func_code), xlim=(-1, 16), ylim=(-1, 11))
8+
create_moving_polygon(fig, ax, renderer, ((3, 10), (2, 10), (1, 8), (2, 6), (2, 6), (5, 6), (7, 8)), (8, 0))
9+
create_still_polygon(fig, ax, renderer, ((10, 5), (8, 6), (6, 5), (6, 4), (7, 2), (10, 4)))
10+
11+
return fig, ax, '{}01_{}'.format(func_code, func_name)
12+
13+
def setup_fig02():
14+
fig, ax, renderer = create_newfig('{}02'.format(func_code), xlim=(-8, 7), ylim=(-2, 12))
15+
create_moving_polygon(fig, ax, renderer, ((5, 5), (4, 5), (2, 0), (4, -1), (6, 0), (5, 5)), (-5, 0))
16+
create_still_polygon(fig, ax, renderer, ((2, 11), (-2, 8), (2, 5), (3, 6), (3, 11)))
17+
18+
return fig, ax, '{}02_{}'.format(func_code, func_name)
19+
20+
def setup_fig03():
21+
fig, ax, renderer = create_newfig('{}03'.format(func_code), xlim=(-3, 12), ylim=(-5, 10))
22+
create_moving_polygon(fig, ax, renderer, ((9.5, 8.5), (8.5, 7.5), (9.5, 5), (10.5, 7)), (-9, -9))
23+
create_still_polygon(fig, ax, renderer, ((2, 5), (-1, 5), (-2, 3), (2, 1), (3, 2)))
24+
25+
return fig, ax, '{}03_{}'.format(func_code, func_name)
26+
27+
def setup_fig04():
28+
fig, ax, renderer = create_newfig('{}04'.format(func_code), xlim=(-1, 14), ylim=(-3, 11))
29+
create_moving_polygon(fig, ax, renderer, ((4.5, 4), (0.5, 2), (0.5, 1), (0.5, 0), (2.5, -2), (3.5, -2), (5.5, -1), (4.5, 4)), (6.7492919018596025, 4.29500393754702))
30+
create_still_polygon(fig, ax, renderer, ((8, 8.5), (5, 9.5), (4, 8.5), (6, 5.5), (6, 5.5)))
31+
32+
return fig, ax, '{}04_{}'.format(func_code, func_name)
33+
34+
run_or_export(setup_fig01, setup_fig02, setup_fig03, setup_fig04)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
from utils import create_newfig, create_moving_polygon, create_still_polygon, run_or_export
2+
3+
func_code = 'au'
4+
func_name = 'test_one_moving_one_stationary_along_path_intr_at_start'
5+
6+
def setup_fig01():
7+
fig, ax, renderer = create_newfig('{}01'.format(func_code), xlim=(-4, 15), ylim=(-2, 10))
8+
create_moving_polygon(fig, ax, renderer, ((5, 3.5), (5, 2.5), (3, -0.5), (-2, 0.5), (-3, 2.5), (-2, 4.5), (0, 6.5)), (9, 2))
9+
create_still_polygon(fig, ax, renderer, ((6.5, 6.5), (9.5, 0.5), (3.5, -0.5), (1.5, 2.5), (3.5, 6.5)))
10+
11+
return fig, ax, '{}01_{}'.format(func_code, func_name)
12+
13+
def setup_fig02():
14+
fig, ax, renderer = create_newfig('{}02'.format(func_code), xlim=(-3, 18), ylim=(-3, 9))
15+
create_moving_polygon(fig, ax, renderer, ((6.5, 5.5), (4.5, 3.5), (2.5, 6.5), (2.5, 7.5), (6.5, 6.5)), (10, -5))
16+
create_still_polygon(fig, ax, renderer, ((6, 2.5), (1, -1.5), (-2, 2.5), (-2, 2.5), (3, 6.5)))
17+
18+
return fig, ax, '{}02_{}'.format(func_code, func_name)
19+
20+
def setup_fig03():
21+
fig, ax, renderer = create_newfig('{}03'.format(func_code), xlim=(-1, 16), ylim=(-6, 10))
22+
create_moving_polygon(fig, ax, renderer, ((10.5, 3.5), (8.5, 2.5), (5.5, 6.5), (9.5, 8.5), (11.5, 6.5), (11.5, 5.5)), (3, -7))
23+
create_still_polygon(fig, ax, renderer, ((12, 1), (11, 0), (9, -3), (8, -3), (5, -1), (5, 4), (9, 5)))
24+
25+
return fig, ax, '{}03_{}'.format(func_code, func_name)
26+
27+
def setup_fig04():
28+
fig, ax, renderer = create_newfig('{}04'.format(func_code), xlim=(-8, 8), ylim=(-1, 19))
29+
create_moving_polygon(fig, ax, renderer, ((3.5, 6), (-0.5, 5), (-0.5, 7), (-0.5, 8), (1.5, 9), (1.5, 9), (3.5, 7)), (-6, 9))
30+
create_still_polygon(fig, ax, renderer, ((7, 6), (5, 6), (4, 6), (3, 7), (5, 10), (7, 9)))
31+
32+
return fig, ax, '{}04_{}'.format(func_code, func_name)
33+
34+
run_or_export(setup_fig01, setup_fig02, setup_fig03, setup_fig04)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
from utils import create_newfig, create_moving_polygon, create_still_polygon, run_or_export
2+
3+
func_code = 'av'
4+
func_name = 'test_one_moving_one_stationary_along_path_intr_later'
5+
6+
def setup_fig01():
7+
fig, ax, renderer = create_newfig('{}01'.format(func_code), xlim=(-10, 15), ylim=(-1, 18))
8+
create_moving_polygon(fig, ax, renderer, ((-5, 9), (-8, 7), (-9, 7), (-8, 11), (-8, 11), (-5, 10)), (15, 2))
9+
create_still_polygon(fig, ax, renderer, ((4, 15.5, 'right'), (5, 12.5, 'botleft'), (0, 11.5), (1, 16.5, 'top')), 'left')
10+
11+
return fig, ax, '{}01_{}'.format(func_code, func_name)
12+
13+
def setup_fig02():
14+
fig, ax, renderer = create_newfig('{}02'.format(func_code), xlim=(-2, 21), ylim=(-7, 11))
15+
create_moving_polygon(fig, ax, renderer, ((4.5, -0.5), (3.5, -2.5), (1.5, -3.5), (-0.5, 0.5), (-0.5, 1.5), (1.5, 2.5)), (13, 3))
16+
create_still_polygon(fig, ax, renderer, ((8, 6), (10, 6), (10, 4), (8, 4)))
17+
18+
return fig, ax, '{}02_{}'.format(func_code, func_name)
19+
20+
def setup_fig03():
21+
fig, ax, renderer = create_newfig('{}03'.format(func_code), xlim=(-3, 25), ylim=(-1, 21))
22+
create_moving_polygon(fig, ax, renderer, ((3, 17.5), (3, 16.5), (1, 15.5), (-1, 15.5), (-1, 18.5), (0, 19.5)), (18, -7))
23+
create_still_polygon(fig, ax, renderer, ((14.5, 13), (14.5, 9), (12.5, 9), (11.5, 12), (12.5, 13)))
24+
25+
return fig, ax, '{}03_{}'.format(func_code, func_name)
26+
27+
def setup_fig04():
28+
fig, ax, renderer = create_newfig('{}04'.format(func_code), xlim=(-10, 8), ylim=(-12, 6))
29+
create_moving_polygon(fig, ax, renderer, ((-5, 2.5), (-8, 0.5), (-9, 1.5), (-8, 4.5), (-6, 4.5)), (12, -10))
30+
create_still_polygon(fig, ax, renderer, ((6, -1.5), (5, -3.5), (2, -2.5), (3, 0.5)))
31+
32+
return fig, ax, '{}04_{}'.format(func_code, func_name)
33+
34+
run_or_export(setup_fig01, setup_fig02, setup_fig03, setup_fig04)

0 commit comments

Comments
 (0)