Code Duplication    Length = 11-11 lines in 2 locations

metpy/plots/tests/test_skewt.py 2 locations

@@ 113-123 (lines=11) @@
110
                          np.array([0.1, 0.3, 0.5, 0.9]), cmap='Greys')
111
    return fig
112
113
@pytest.mark.mpl_image_compare(tolerance=0, remove_text=True)
114
def test_hodograph_api():
115
    """Basic test of Hodograph API."""
116
    fig = plt.figure(figsize=(9, 9))
117
    ax = fig.add_subplot(1, 1, 1)
118
    hodo = Hodograph(ax, component_range=60)
119
    hodo.add_grid(increment=5, color='k')
120
    hodo.plot([1, 10], [1, 10], color='red')
121
    hodo.plot_colormapped(np.array([1, 3, 5, 10]), np.array([2, 4, 6, 11]),
122
                          np.array([0.1, 0.3, 0.5, 0.9]), cmap='Greys')
123
    return fig
124
125
126
@pytest.mark.mpl_image_compare(tolerance=0, remove_text=True)
@@ 101-111 (lines=11) @@
98
    return fig
99
100
101
@pytest.mark.mpl_image_compare(tolerance=0, remove_text=True)
102
def test_hodograph_api():
103
    """Basic test of Hodograph API."""
104
    fig = plt.figure(figsize=(9, 9))
105
    ax = fig.add_subplot(1, 1, 1)
106
    hodo = Hodograph(ax, component_range=60)
107
    hodo.add_grid(increment=5, color='k')
108
    hodo.plot([1, 10], [1, 10], color='red')
109
    hodo.plot_colormapped(np.array([1, 3, 5, 10]), np.array([2, 4, 6, 11]),
110
                          np.array([0.1, 0.3, 0.5, 0.9]), cmap='Greys')
111
    return fig
112
113
@pytest.mark.mpl_image_compare(tolerance=0, remove_text=True)
114
def test_hodograph_api():