Code Duplication    Length = 11-11 lines in 2 locations

metpy/plots/tests/test_skewt.py 2 locations

@@ 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
114
@pytest.mark.mpl_image_compare(tolerance=0, remove_text=True)
@@ 114-124 (lines=11) @@
111
    return fig
112
113
114
@pytest.mark.mpl_image_compare(tolerance=0, remove_text=True)
115
def test_hodograph_api():
116
    """Basic test of Hodograph API."""
117
    fig = plt.figure(figsize=(9, 9))
118
    ax = fig.add_subplot(1, 1, 1)
119
    hodo = Hodograph(ax, component_range=60)
120
    hodo.add_grid(increment=5, color='k')
121
    hodo.plot([1, 10], [1, 10], color='red')
122
    hodo.plot_colormapped(np.array([1, 3, 5, 10]), np.array([2, 4, 6, 11]),
123
                          np.array([0.1, 0.3, 0.5, 0.9]), cmap='Greys')
124
    return fig
125
126
127
@pytest.mark.mpl_image_compare(tolerance=0, remove_text=True)