Skip to content

Commit f513a89

Browse files
committed
Use matplotlib for images
Replace all the graph files and generated images with matplotlib files and generated images. This is from @IanDoarns suggestion on OmkarPathak#69. * imgs/test_geometry/test_extrapolated_intersection/(many) - replace with matplotlib files * tests/test_geometry.py - update documentation to remove references to Graph files (in favor of matplotlib)
1 parent 608999b commit f513a89

File tree

113 files changed

+572
-5445
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

+572
-5445
lines changed

imgs/test_geometry/test_extrapolated_intersection/__init__.py

Whitespace-only changes.

imgs/test_geometry/test_extrapolated_intersection/aa01_test_point_line_no_intr.grf

Lines changed: 0 additions & 70 deletions
This file was deleted.

imgs/test_geometry/test_extrapolated_intersection/aa01_test_point_line_no_intr.py

Lines changed: 0 additions & 45 deletions
This file was deleted.

imgs/test_geometry/test_extrapolated_intersection/aa02_test_point_line_no_intr.grf

Lines changed: 0 additions & 70 deletions
This file was deleted.

imgs/test_geometry/test_extrapolated_intersection/aa03_test_point_line_no_intr.grf

Lines changed: 0 additions & 70 deletions
This file was deleted.

imgs/test_geometry/test_extrapolated_intersection/aa04_test_point_line_no_intr.grf

Lines changed: 0 additions & 70 deletions
This file was deleted.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
from utils import create_newfig, create_moving_point, create_still_segment, run_or_export
2+
3+
def setup_fig01():
4+
fig, ax, renderer = create_newfig('aa01')
5+
6+
create_moving_point(fig, ax, renderer, 1, 1, 6, 1)
7+
create_still_segment(fig, ax, renderer, (2, 4), (6, 2))
8+
return fig, ax, 'aa01_test_point_line_no_intr'
9+
10+
def setup_fig02():
11+
fig, ax, renderer = create_newfig('aa02')
12+
13+
create_moving_point(fig, ax, renderer, 1, 1, 1, 4)
14+
create_still_segment(fig, ax, renderer, (2, 4), (6, 2), 'topright')
15+
return fig, ax, 'aa02_test_point_line_no_intr'
16+
17+
def setup_fig03():
18+
fig, ax, renderer = create_newfig('aa03')
19+
20+
create_moving_point(fig, ax, renderer, 4, 1, 1, 4)
21+
create_still_segment(fig, ax, renderer, (2, 4), (6, 4), 'topright')
22+
return fig, ax, 'aa03_test_point_line_no_intr'
23+
24+
def setup_fig04():
25+
fig, ax, renderer = create_newfig('aa04')
26+
27+
create_moving_point(fig, ax, renderer, 2, 1, 6, 4)
28+
create_still_segment(fig, ax, renderer, (1, 2), (5, 4), 'topleft')
29+
return fig, ax, 'aa04_test_point_line_no_intr'
30+
31+
run_or_export(setup_fig01, setup_fig02, setup_fig03, setup_fig04)

0 commit comments

Comments
 (0)