Skip to content

About

matplotlib: plotting with Python

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

50,554 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Report for Assignment 1

Project chosen

Name: matplotlib

URL: https://github.com/matplotlib/matplotlib

Number of lines of code and the tool used to count it: Lizard - 229 KOC

Programming language: Python

Coverage measurement

Existing tool

The tool we use to perform coverage analysis is Coverage.py.

Execution:

coverage run -m pytest
coverage report

Screenshot of Coverage Results:

image

Your own coverage tool

Nolan Otam

lib/matplotlib/transforms.py/overlaps

Link to commit : 5a98cd267a3d28499469553ef6e4504d2c25f052

image

lib/matplotlib/legend.py/set_bbox_to_anchor

Link to commit : 0c42901b4508e1f3a0c2d75334fb2d7f2397878d

image

Moegiez Bhatti

lib/matplotlib/stackplot.py/stackplot

Link to commit 3674e9ae2fd0295eb7490d2263586048c19c74c8

WhatsApp Image 2024-06-27 at 21 37 23_da507acc

lib\matplotlib\pyplot.py/switch_backend

Link to commit : 2fc7ced47833ea4dcb2138db4c7bf734527f3fb9

image

Narek Darbinyan

lib\matplotlib\_internal_utils.py/graphviz_dump_transform

Link to commit : fe3584d342331f41c2b9912887a33819a7a37c8a

Screen Shot 2024-06-27 at 22 59 35

lib\matplotlib\colors.py/is_color_like

Link to commit : 68dd30ee2d000e94ec67a568a245cc16f300f9dd

Screen Shot 2024-06-27 at 22 47 19

Eric Pătrașcu

lib\matplotlib\cbook.py\get_sample_data

Link to commit : [05e9423e303274d5b88b973cbd16ac3550cf01c2] ([https://github.com/matplotlib/matplotlib/commit/05e9423e303274d5b88b973cbd16ac3550cf01c2]

lib\matplotlib\spines.py\set_bounds

Link to commit : e3bec661e353f0d787828bbf5513e509d9da0b63

Coverage improvement

Individual tests

Nolan Otam

Test for lib/matplotlib/transforms.py/overlaps

Link to commit : 6698edcfe28dce1e0f42a7c432e56a5a21fdd45a

Old coverage results

image

New coverage results

image

The branch coverage improved from 0% to 100% because new tests were added. These tests now cover all branches, including ax2_ax1_swap, ay2_ay1_swap, bx2_bx1_swap, and by2_by1_swap.

Test for lib/matplotlib/legend.py/set_bbox_to_anchor

Link to commit : 44d973d927a234669b290cd6dafe2b9c69fbfe2d

Old coverage results

image

New coverage results

image

The branch coverage improved from 57% to 100% because new tests were added. These tests now cover previously untested branches, including cases for bbox_is_BboxBase_instance, bbox_length_is_not_2, and transform_is_not_None.

Moegiez Bhatti

Test for lib/matplotlib/stackplot.py/stackplot

Link to commit : 0ef7c5c9c0ba1eeb98f1dca9604e353698f3c262

Old coverage results WhatsApp Image 2024-06-27 at 21 37 23_da507acc

New coverage results

image

The branch coverage improved from 0% to 80% because new tests were added. These tests now cover more branches.

Test for lib\matplotlib\pyplot.py/switch_backend

Link to commit : 0ef7c5c9c0ba1eeb98f1dca9604e353698f3c262

Old coverage results](https://github.com/NolanO64/matplotlib/actions/runs/9701495186)

image

New coverage results

image

The branch coverage improved from 0% to 50% because new tests were added.

Narek Darbinyan

Test for lib\matplotlib\_internal_utils.py/graphviz_dump_transform

New coverage results

Screen Shot 2024-06-27 at 22 38 39

The branch coverage improved from 0% to 89% because new tests were added.

Test for lib\matplotlib\colors.py/is_color_like

Link to commit : 888081d8cc3d2e2ea815130aaa15bcecf43299b8

New coverage results

Screen Shot 2024-06-27 at 22 38 11

The branch coverage improved from 0% to 97% because new tests were added.

Eric Patrascu

Test for lib\matplotlib\cbook.py\get_sample_data

Link to commit : c7e3f1afe481d4cfc4d3fa9f8c6f0eb9b4c4dc23

Old coverage results

New coverage results

The branch coverage improved because new tests were added covering more branches.

Test for lib/matplotlib/spines.py\set_bounds

Link to commit : a8ca46063eb5a712413ef9e36a60d4597dc5a648 Old coverage results

New coverage results

Overall

Old global coverage results

image

New global coverage results

Statement of individual contributions

Nolan Otam

  • Branch coverage analysis of lib/matplotlib/transforms.py/overlaps
  • Added tests to improve branch coverage of lib/matplotlib/transforms.py/overlaps
  • Branch coverage analysis of lib/matplotlib/legend.py/set_bbox_to_anchor
  • Added tests to improve branch coverage of lib/matplotlib/legend.py/set_bbox_to_anchor

Narek Darbinyan

  • Branch coverage analysis of lib/matplotlib/_internal_utils.py/graphviz_dump_transform
  • Added tests to improve branch coverage of lib/matplotlib/test_graphviz_dump_transform.py
  • Branch coverage analysis of lib/matplotlib/colors.py/is_color_of
  • Added tests to improve branch coverage of lib/matplotlib/test_is_color_of.py

About

matplotlib: plotting with Python

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages