Download omnilmm/lib/python3.10/site-packages/matplotlib/tests/test_container.py from ZTWHHH/envs_2: direct link, hf CLI and curl.
- Browser
- Download file 550 Bytes
-
https://huggingface.co/datasets/ZTWHHH/envs_2/resolve/main/omnilmm/lib/python3.10/site-packages/matplotlib/tests/test_container.py
- Command line
-
hf download hf://datasets/ZTWHHH/envs_2/omnilmm/lib/python3.10/site-packages/matplotlib/tests/test_container.py
-
curl -L -o test_container.py https://huggingface.co/datasets/ZTWHHH/envs_2/resolve/main/omnilmm/lib/python3.10/site-packages/matplotlib/tests/test_container.py
550 Bytes
| import matplotlib.pyplot as plt | |
| def test_stem_remove(): | |
| ax = plt.gca() | |
| st = ax.stem([1, 2], [1, 2]) | |
| st.remove() | |
| def test_errorbar_remove(): | |
| # Regression test for a bug that caused remove to fail when using | |
| # fmt='none' | |
| ax = plt.gca() | |
| eb = ax.errorbar([1], [1]) | |
| eb.remove() | |
| eb = ax.errorbar([1], [1], xerr=1) | |
| eb.remove() | |
| eb = ax.errorbar([1], [1], yerr=2) | |
| eb.remove() | |
| eb = ax.errorbar([1], [1], xerr=[2], yerr=2) | |
| eb.remove() | |
| eb = ax.errorbar([1], [1], fmt='none') | |
| eb.remove() | |