()
| 1291 | |
| 1292 | |
| 1293 | def test_alpha_handles(): |
| 1294 | x, n, hh = plt.hist([1, 2, 3], alpha=0.25, label='data', color='red') |
| 1295 | legend = plt.legend() |
| 1296 | for lh in legend.legend_handles: |
| 1297 | lh.set_alpha(1.0) |
| 1298 | assert lh.get_facecolor()[:-1] == hh[1].get_facecolor()[:-1] |
| 1299 | assert lh.get_edgecolor()[:-1] == hh[1].get_edgecolor()[:-1] |
| 1300 | |
| 1301 | |
| 1302 | @needs_usetex |
nothing calls this directly
no test coverage detected
searching dependent graphs…