当前位置: 首页>>代码示例>>Python>>正文


Python LfunctionPlot类代码示例

本文整理汇总了Python中LfunctionPlot的典型用法代码示例。如果您正苦于以下问题:Python LfunctionPlot类的具体用法?Python LfunctionPlot怎么用?Python LfunctionPlot使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了LfunctionPlot类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: render_browseGraph

def render_browseGraph(args):
    # logger.debug(args)
    if 'sign' in args:
        data = LfunctionPlot.paintSvgFileAll([[args['group'], int(args['level']), args['sign']]])
    else:
        data = LfunctionPlot.paintSvgFileAll([[args['group'], int(args['level'])]])
    response = make_response(data)
    response.headers['Content-type'] = 'image/svg+xml'
    return response
开发者ID:davidpeterroberts,项目名称:lmfdb,代码行数:9,代码来源:main.py

示例2: render_webpage

def render_webpage(request, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9):
    args = request.args
    temp_args = to_dict(args)
    
    if len(args) == 0:  #This ensures it's a navigation page 
        if not arg1: # this means we're at the start page
            info = set_info_for_start_page()
            return render_template("LfunctionNavigate.html", **info)
        
        elif arg1.startswith("degree"):
            degree = int(arg1[6:])
            info = { "degree" : degree }
            info["key"] = 777
            info["bread"] =  [('L-functions', url_for("render_Lfunction")), ('Degree '+str(degree), '/L/degree'+str(degree))]
            if degree == 1:
                info["contents"] = [LfunctionPlot.getOneGraphHtmlChar(1,35,1,13)]
                info['friends'] = [('Dirichlet Characters', '/Character/Dirichlet/')]
            elif degree == 2:
                info["contents"] = [processEllipticCurveNavigation(args), LfunctionPlot.getOneGraphHtmlHolo(1, 22, 2, 14)]
            elif degree == 3 or degree == 4:
                info["contents"] = LfunctionPlot.getAllMaassGraphHtml(degree)
                
            return render_template("DegreeNavigateL.html", info=info, title = 'Degree ' + str(degree)+ ' L-functions', bread = info["bread"])
            
        elif arg1 == 'custom': # need a better name
            return "not yet implemented"
        
    try:
        L = generateLfunctionFromUrl(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, temp_args)
        
    except Exception as inst:   # There was an exception when creating the page
        error_message = ('There was an error loading this page. Please report the ' +
                         'address of this page and the following error message: ' +
                         str(inst.args))
        if len(inst.args) >1:
            if inst.args[1]== "UserError":
                error_message = inst.args[0]
            
        
        info = { 'content': error_message, 'title': 'Error' }
        return render_template('LfunctionSimple.html', info=info, **info)


    try:
        logger.info(temp_args)
        if temp_args['download'] == 'lcalcfile':
            return render_lcalcfile(L, request.url)
    except:
        1
        #Do nothing

    info = initLfunction(L, temp_args, request)

    return render_template('Lfunction.html', **info)
开发者ID:swisherh,项目名称:swisherh-logo,代码行数:54,代码来源:renderLfunction.py

示例3: render_browseGraphChar

def render_browseGraphChar(args):
    # logger.debug(args)
    data = LfunctionPlot.paintSvgChar(
        args['min_cond'], args['max_cond'], args['min_order'], args['max_order'])
    response = make_response(data)
    response.headers['Content-type'] = 'image/svg+xml'
    return response
开发者ID:davidpeterroberts,项目名称:lmfdb,代码行数:7,代码来源:main.py

示例4: render_browseGraphTMP

def render_browseGraphTMP(args):
    # logger.debug(args)
    data = LfunctionPlot.paintSvgHoloGeneral(
        args['Nmin'], args['Nmax'], args['kmin'], args['kmax'], args['imagewidth'], args['imageheight'])
    response = make_response(data)
    response.headers['Content-type'] = 'image/svg+xml'
    return response
开发者ID:davidpeterroberts,项目名称:lmfdb,代码行数:7,代码来源:main.py

示例5: l_function_maass_gln_browse_page

def l_function_maass_gln_browse_page(degree):
    degree = int(degree[6:])
    info = {"bread": get_bread(degree, [("MaassForm", url_for('.l_function_maass_gln_browse_page',
                                                              degree='degree' + str(degree)))])}
    info["contents"] = LfunctionPlot.getAllMaassGraphHtml(degree)
    return render_template("MaassformGLn.html",
                           title='L-functions of GL(%s) Maass Forms' % degree, **info)
开发者ID:davidpeterroberts,项目名称:lmfdb,代码行数:7,代码来源:main.py

示例6: l_function_dirichlet_browse_page

def l_function_dirichlet_browse_page():
    info = {"bread": get_bread(1, [])}
    info["minModDefault"] = 1
    info["maxModDefault"] = 20
    info["maxOrder"] = 14
    info["contents"] = [LfunctionPlot.getOneGraphHtmlChar(info["minModDefault"], info[
                                                          "maxModDefault"], 1, info["maxOrder"])]
    return render_template("Degree1.html", title='Degree 1 L-functions', **info)
开发者ID:davidpeterroberts,项目名称:lmfdb,代码行数:8,代码来源:main.py

示例7: l_function_maass_gln_browse_page

def l_function_maass_gln_browse_page(degree):
    degree = get_degree(degree)
    if degree < 0:
        return flask.abort(404)
    contents = LfunctionPlot.getAllMaassGraphHtml(degree)
    if not contents:
        return flask.abort(404)
    info = {"bread": get_bread(degree, [("Maass Form", url_for('.l_function_maass_gln_browse_page',
                                                              degree='degree' + str(degree)))])}
    info["contents"] = contents
    return render_template("MaassformGLn.html",
                           title='L-functions of GL(%s) Maass Forms' % degree, **info)
开发者ID:sanni85,项目名称:lmfdb,代码行数:12,代码来源:main.py

示例8: l_function_cuspform_browse_page

def l_function_cuspform_browse_page():
    info = {"bread": get_bread(2, [("CuspForm", url_for('.l_function_cuspform_browse_page'))])}
    info["contents"] = [LfunctionPlot.getOneGraphHtmlHolo(1, 13, 2, 12)]
    return render_template("cuspformGL2.html", title='L-functions of Cusp Forms on \(\Gamma_0(N)\) with trivial character', **info)
开发者ID:davidpeterroberts,项目名称:lmfdb,代码行数:4,代码来源:main.py

示例9: render_browseGraphHolo

def render_browseGraphHolo(args):
    data = LfunctionPlot.paintSvgHolo(args['Nmin'], args['Nmax'], args['kmin'], args['kmax'])
    response = make_response(data)
    response.headers['Content-type'] = 'image/svg+xml'
    return response
开发者ID:sanni85,项目名称:lmfdb,代码行数:5,代码来源:main.py

示例10: render_browseGraph

def render_browseGraph(args):
    data = LfunctionPlot.paintSvgFileAll([[args['group'],
                                           int(args['level'])]])
    response = make_response(data)
    response.headers['Content-type'] = 'image/svg+xml'
    return response
开发者ID:sanni85,项目名称:lmfdb,代码行数:6,代码来源:main.py


注:本文中的LfunctionPlot类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。