Example #1
0
def matlp_10(request):
    sql = "SELECT p.measure_nub " \
            "FROM ph as p WHERE sendor=%s "
    cursor = connection.cursor()
    ph_3_3_rest = cursor.execute(sql, ['ph-3-3'])
    ph_3_3 = list(cursor.fetchall())
    a = MatplotlibPng(ph_3_3)
    a.draw_plt()
    return render(request, 'test.html', {})
Example #2
0
def matlp_12(request):
    sql = "SELECT p.measure_nub " \
            "FROM an as p WHERE sendor=%s "
    cursor = connection.cursor()
    a_1_rest = cursor.execute(sql, ['a-2'])
    a_1 = list(cursor.fetchall())
    a = MatplotlibPng(a_1)
    a.draw_plt()
    return render(request, 'test.html', {})
Example #3
0
def matlp_8(request):
    sql = "SELECT p.measure_nub " \
            "FROM metal as p WHERE sendor=%s "
    cursor = connection.cursor()
    m_2_rest = cursor.execute(sql, ['m-2'])
    m_2 = list(cursor.fetchall())
    a = MatplotlibPng(m_2)
    a.draw_plt()
    return render(request, 'test.html', {})
Example #4
0
def matplotlib_png(request):
    dp_request = [1, 2, 3, 4, 5]
    client = MatplotlibPng(dp_request)
    client.draw_plt()