()
| 1240 | |
| 1241 | |
| 1242 | def test_LineCollection_args(): |
| 1243 | lc = LineCollection(None, linewidth=2.2, edgecolor='r', |
| 1244 | zorder=3, facecolors=[0, 1, 0, 1]) |
| 1245 | assert lc.get_linewidth()[0] == 2.2 |
| 1246 | assert mcolors.same_color(lc.get_edgecolor(), 'r') |
| 1247 | assert lc.get_zorder() == 3 |
| 1248 | assert mcolors.same_color(lc.get_facecolor(), [[0, 1, 0, 1]]) |
| 1249 | # To avoid breaking mplot3d, LineCollection internally sets the facecolor |
| 1250 | # kwarg if it has not been specified. Hence we need the following test |
| 1251 | # for LineCollection._set_default(). |
| 1252 | lc = LineCollection(None, facecolor=None) |
| 1253 | assert mcolors.same_color(lc.get_facecolor(), 'none') |
| 1254 | |
| 1255 | |
| 1256 | def test_array_dimensions(pcfunc): |
nothing calls this directly
no test coverage detected
searching dependent graphs…