@scipyonly
@numpyonly
def test_plotbug1():
    with util_numpy.test_uses_numpy() as np:
        s1 = np.array([0.0, 0, 1, 2, 1, 0, 1, 0, 0, 2, 1, 0, 0])
        s2 = np.array([0.0, 1, 2, 3, 1, 0, 0, 0, 2, 1, 0, 0])
        series = (s1, s2)
        m = clustering.LinkageTree(dtw.distance_matrix, {})
        m.fit(series)
        if (not dtwvis.test_without_visualization()):
            if directory:
                hierarchy_fn = os.path.join(directory, 'clustering.png')
            else:
                file = tempfile.NamedTemporaryFile()
                hierarchy_fn = (file.name + '_clustering.png')
            m.plot(hierarchy_fn)
            print('Figure save to', hierarchy_fn)
@scipyonly
@numpyonly
def test_plotbug1():
    with util_numpy.test_uses_numpy() as np:
        s1 = np.array([0.0, 0, 1, 2, 1, 0, 1, 0, 0, 2, 1, 0, 0])
        s2 = np.array([0.0, 1, 2, 3, 1, 0, 0, 0, 2, 1, 0, 0])
        series = (s1, s2)
        m = clustering.LinkageTree(dtw.distance_matrix, {})
        m.fit(series)
        if (not dtwvis.test_without_visualization()):
            if directory:
                hierarchy_fn = os.path.join(directory, 'clustering.png')
            else:
                file = tempfile.NamedTemporaryFile()
                hierarchy_fn = (file.name + '_clustering.png')
            m.plot(hierarchy_fn)
            print('Figure save to', hierarchy_fn)