mmpretrain/tests/test_utils
Ma Zerun 6fba107840
[Refactor] Use context manager to reuse matplotlib figures. (#432)
* Add `BaseImshowContextmanager` and `ImshowInfosContextManager` to reuse
matplotlib figure.

* Use context manager to implement `imshow_infos`

* Add unit tests.

* More general base context manager.

* unit tests for context manager.

* Improve docstring.

* Fix context manager exit cannot close figure when matplotlib>=3.4.0

* Fix unit tests

* Support inline backend in visualization.
2021-09-30 13:59:27 +08:00
..
test_version_utils.py [Docs] Add Copyright information. (#413) 2021-08-17 19:52:42 +08:00
test_visualization.py [Refactor] Use context manager to reuse matplotlib figures. (#432) 2021-09-30 13:59:27 +08:00