()
| 553 | |
| 554 | |
| 555 | def test_nanscatter(): |
| 556 | fig, ax = plt.subplots() |
| 557 | |
| 558 | h = ax.scatter([np.nan], [np.nan], marker="o", |
| 559 | facecolor="r", edgecolor="r", s=3) |
| 560 | |
| 561 | ax.legend([h], ["scatter"]) |
| 562 | |
| 563 | fig, ax = plt.subplots() |
| 564 | for color in ['red', 'green', 'blue']: |
| 565 | n = 750 |
| 566 | x, y = np.random.rand(2, n) |
| 567 | scale = 200.0 * np.random.rand(n) |
| 568 | ax.scatter(x, y, c=color, s=scale, label=color, |
| 569 | alpha=0.3, edgecolors='none') |
| 570 | |
| 571 | ax.legend() |
| 572 | ax.grid(True) |
| 573 | |
| 574 | |
| 575 | def test_legend_repeatcheckok(): |