def plotRawData(plotTitle, xTitle, yTitle, viewGrid):
    global x
    global y
    global y_err
    global ERR
    figure1 = plt.figure()
    axes1 = figure1.add_subplot(111)
    axes1.set_title(plotTitle, fontsize='x-large')
    axes1.set_xlabel(xTitle, fontsize='large')
    axes1.set_ylabel(yTitle, fontsize='large')
    if viewGrid:
        axes1.minorticks_on()
        axes1.set_axisbelow(True)
        axes1.grid(b=True, which='major', alpha=0.5)
        axes1.grid(b=True, which='minor', alpha=0.2)
    if ERR:
        axes1.errorbar(x, y, y_err, fmt='.', color='midnightblue', ecolor='royalblue', capsize=2)
    else:
        axes1.scatter(x, y, color='midnightblue', label='Data')
    figure1.show()
def plotRawData(plotTitle, xTitle, yTitle, viewGrid):
    global x
    global y
    global y_err
    global ERR
    figure1 = plt.figure()
    axes1 = figure1.add_subplot(111)
    axes1.set_title(plotTitle, fontsize='x-large')
    axes1.set_xlabel(xTitle, fontsize='large')
    axes1.set_ylabel(yTitle, fontsize='large')
    if viewGrid:
        axes1.minorticks_on()
        axes1.set_axisbelow(True)
        axes1.grid(b=True, which='major', alpha=0.5)
        axes1.grid(b=True, which='minor', alpha=0.2)
    if ERR:
        axes1.errorbar(x, y, y_err, fmt='.', color='midnightblue', ecolor='royalblue', capsize=2)
    else:
        axes1.scatter(x, y, color='midnightblue', label='Data')
    figure1.show()