test_axis.py 268 B

12345678910
  1. import numpy as np
  2. import matplotlib.pyplot as plt
  3. from matplotlib.axis import XTick
  4. def test_tick_labelcolor_array():
  5. # Smoke test that we can instantiate a Tick with labelcolor as array.
  6. ax = plt.axes()
  7. XTick(ax, 0, labelcolor=np.array([1, 0, 0, 1]))