Download omnilmm/lib/python3.10/site-packages/matplotlib/tests/test_axis.py from ZTWHHH/envs_2: direct link, hf CLI and curl.
- Browser
- Download file 268 Bytes
-
https://huggingface.co/datasets/ZTWHHH/envs_2/resolve/main/omnilmm/lib/python3.10/site-packages/matplotlib/tests/test_axis.py
- Command line
-
hf download hf://datasets/ZTWHHH/envs_2/omnilmm/lib/python3.10/site-packages/matplotlib/tests/test_axis.py
-
curl -L -o test_axis.py https://huggingface.co/datasets/ZTWHHH/envs_2/resolve/main/omnilmm/lib/python3.10/site-packages/matplotlib/tests/test_axis.py
268 Bytes
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from matplotlib.axis import XTick | |
| def test_tick_labelcolor_array(): | |
| # Smoke test that we can instantiate a Tick with labelcolor as array. | |
| ax = plt.axes() | |
| XTick(ax, 0, labelcolor=np.array([1, 0, 0, 1])) | |