# -*- coding: utf-8 -*-
#
import helpers


def plot():
    from matplotlib import pyplot as plt
    import numpy as np

    fig = plt.figure()

    x = np.ma.arange(0, 2*np.pi, 0.02)
    y1 = np.sin(1*x)
    y2 = np.sin(2*x)
    y3 = np.sin(3*x)

    plt.plot(x, y1, label='y1')
    plt.plot(x, y2, label=None)
    plt.plot(x, y3, label='y4')
    plt.legend()

    return fig


def test():
    phash = helpers.Phash(plot())
    assert phash.phash == 'eb785e0aaed6c190', phash.get_details()
    return


if __name__ == '__main__':
    # print(helpers.Phash(plot()).phash)
    helpers.compare_with_latex(plot())

# -*- coding: utf-8 -*-
#
import helpers


def plot():
    from matplotlib import pyplot as plt
    import numpy as np

    fig = plt.figure()

    x = np.ma.arange(0, 2*np.pi, 0.02)
    y1 = np.sin(1*x)
    y2 = np.sin(2*x)
    y3 = np.sin(3*x)

    plt.plot(x, y1, label='y1')
    plt.plot(x, y2, label=None)
    plt.plot(x, y3, label='y4')
    plt.legend()

    return fig


def test():
    phash = helpers.Phash(plot())
    assert phash.phash == 'eb785e0aaed68194', phash.get_details()
    return


if __name__ == '__main__':
    # print(helpers.Phash(plot()).phash)
    helpers.compare_with_latex(plot())

Test hash needed to change.
Test hash needed to change.
