Commit 46bb24b
committed
Add comprehensive tests for PlottingUtils and enhance plotting functionality
- Implemented a new method `close_all_figures` in PlottingUtils to close all matplotlib figures and free memory.
- Updated `setup_plotting_style` to suppress warnings about too many open figures in testing environments.
- Enhanced `plot_ldpc_matrix_comparison` to handle cases with all zero values by using a linear scale.
- Modified boxplot labels in `plot_latency_distribution` for better clarity.
- Created a comprehensive test suite for the PlottingUtils class, achieving 100% code coverage.
- Included tests for various plotting methods, edge cases, and error handling scenarios.1 parent 6a5e4f4 commit 46bb24b
2 files changed
+949
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
40 | 47 | | |
41 | 48 | | |
42 | 49 | | |
| |||
135 | 142 | | |
136 | 143 | | |
137 | 144 | | |
138 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
139 | 148 | | |
140 | 149 | | |
141 | 150 | | |
| |||
407 | 416 | | |
408 | 417 | | |
409 | 418 | | |
410 | | - | |
| 419 | + | |
411 | 420 | | |
412 | 421 | | |
413 | 422 | | |
| |||
0 commit comments