import matplotlib.pyplot as plt
import numpy as np

__all__ = [
    "graph"
]

def _init():
    plt.figure(_figure.number)
    plt.subplot(_ax)
    plt.ion()

    _ax.spines['left'].set_position('center')
    _ax.spines['bottom'].set_position('center')

    _ax.spines['right'].set_color('none')
    _ax.spines['top'].set_color('none')

    _ax.yaxis.set_ticks_position('left')
    _ax.xaxis.set_ticks_position('bottom')

    plt.show()


def graph(x, y):
    print(x, y)


''' Initialize graph module '''
_figure, _ax = plt.subplots()
_init()
import matplotlib.pyplot as plt
import numpy as np

__all__ = [
    "graph"
]

def _init():
    plt.figure(_figure.number)
    plt.subplot(_ax)
    plt.ion()

    _ax.spines['left'].set_position('center')
    _ax.spines['bottom'].set_position('center')

    _ax.spines['right'].set_color('none')
    _ax.spines['top'].set_color('none')

    _ax.yaxis.set_ticks_position('left')
    _ax.xaxis.set_ticks_position('bottom')

    plt.show()


def graph(x, y):
    print(x, y)


''' Initialize graph module '''
_figure, _ax = plt.subplots()
_init()
Initialize graph module