@@ -234,10 +234,8 @@ def getWidthAndHeight(gls):
234234 for origin in db .lfunc_lfunctions .search ({'group' : gls [0 ], 'conductor' : gls [1 ]}, 'origin' ):
235235 splitId = origin .split ('/' )[6 ].split ('_' )
236236
237- if float (splitId [0 ]) > xMax :
238- xMax = float (splitId [0 ])
239- if float (splitId [1 ]) > yMax :
240- yMax = float (splitId [1 ])
237+ xMax = max (float (splitId [0 ]), xMax )
238+ yMax = max (float (splitId [1 ]), yMax )
241239
242240 xMax = math .ceil (xMax )
243241 yMax = math .ceil (yMax )
@@ -277,10 +275,8 @@ def paintSvgFileAll(glslist): # list of group and level
277275 splitId = R .split ('_' )
278276 paralist .append ((splitId [0 ], splitId [1 ], l ['origin' ], group , level ,
279277 char , R , ap_id , l ['root_number' ]))
280- if float (splitId [0 ]) > xMax :
281- xMax = float (splitId [0 ])
282- if float (splitId [1 ]) > yMax :
283- yMax = float (splitId [1 ])
278+ xMax = max (float (splitId [0 ]), xMax )
279+ yMax = max (float (splitId [1 ]), yMax )
284280
285281 xMax = int (math .ceil (xMax ))
286282 yMax = int (math .ceil (yMax ))
@@ -492,8 +488,7 @@ def colorsForWeights(num_weights):
492488 projection = ['analytic_conductor' , 'label' , 'level' , 'weight' , 'conrey_index' , 'dim' , 'char_degree' ],
493489 sort = [('analytic_conductor' , 1 )]):
494490 _ , k , _ , hecke_letter = nf ['label' ].split ('.' )
495- if int (k ) > max_k :
496- max_k = int (k )
491+ max_k = max (int (k ), max_k )
497492 if nf ['weight' ] not in values :
498493 values [nf ['weight' ]] = []
499494 if nf ['dim' ] == 1 :
@@ -522,10 +517,8 @@ def colorsForWeights(num_weights):
522517 k = label [1 ]
523518 x = x_scale * float (Nk2 )
524519 y = y_scale * z1
525- if y > y_max :
526- y_max = y
527- if x > x_max :
528- x_max = x
520+ y_max = max (y , y_max )
521+ x_max = max (x , x_max )
529522 points .append ((x , y , lfun_url , "." .join (map (str , label )), k ))
530523
531524 # Begin drawing
@@ -796,20 +789,17 @@ def paintSvgHoloGeneral(Nmin, Nmax, kmin, kmax, imagewidth, imageheight):
796789 dimensioninfo ['dotradius' ] = radius
797790 dimensioninfo ['connectinglinewidth' ] = dimensioninfo ['dotradius' ] / 1.5
798791 dimensioninfo ['firstdotoffset' ] = [0.0 , 0.0 ]
799- #
800792 appearanceinfo = {}
801793 # appearanceinfo['edgewidth'] = dimensioninfo['dotspacing'][0]/1.0 #just a guess
802794 appearanceinfo ['edgewidth' ] = [0 , 0 ] # remove the sector edges
803795 appearanceinfo ['edgestyle' ] = 'stroke-dasharray:3,3'
804796 appearanceinfo ['edgecolor' ] = 'rgb(202,202,102)'
805797 appearanceinfo ['fontsize' ] = 'font-size:11px'
806798 appearanceinfo ['fontweight' ] = ""
807- #
808799 urlinfo = {'base' : '/L/ModularForm/GL2/Q/holomorphic?' }
809800 urlinfo ['space' ] = {'weight' : y }
810801 urlinfo ['space' ]['level' ] = x
811802 urlinfo ['space' ]['character' ] = 0
812- #
813803 # scale = 1 # not used
814804 # Symmetry types: +1 or -1
815805 symmetrytype = [1 , - 1 ]
@@ -879,7 +869,6 @@ def paintCSHoloTMP(width, height, xMax, yMax, xfactor, yfactor, ticlength):
879869 xmlText = xmlText + ("<line x1='0' y1='" + str (
880870 height ) + "' x2='0' y2='0' style='stroke:rgb(0,0,0);'/>\n " ) # draw vertical axis
881871 xmlText += "<text x='50.0' y='491.0' font-style='italic'>level</text>"
882- #
883872 # xmlText += mytext("level", [0,height], [xfactor, yfactor], [0.2, 0.7],
884873 # "", 'font-size:11px', "", 'rgb(0,0,0)')
885874 xmlText += "<text x='33.0' y='411.0' transform='rotate(270 33, 411)' font-style='italic'>weight</text>"
0 commit comments