()
| 773 | |
| 774 | @image_comparison(['offset_points'], remove_text=True, style='mpl20') |
| 775 | def test_basic_annotate(): |
| 776 | # Setup some data |
| 777 | t = np.arange(0.0, 5.0, 0.01) |
| 778 | s = np.cos(2.0*np.pi * t) |
| 779 | |
| 780 | # Offset Points |
| 781 | |
| 782 | fig = plt.figure() |
| 783 | ax = fig.add_subplot(autoscale_on=False, xlim=(-1, 5), ylim=(-3, 5)) |
| 784 | line, = ax.plot(t, s, lw=3, color='purple') |
| 785 | |
| 786 | ax.annotate('local max', xy=(3, 1), xycoords='data', |
| 787 | xytext=(3, 3), textcoords='offset points') |
| 788 | |
| 789 | |
| 790 | @image_comparison(['arrow_simple.png'], remove_text=True, style='_classic_test') |
nothing calls this directly
no test coverage detected
searching dependent graphs…