visualizer: move comments and update spellchecking exemptions

This commit is contained in:
Gabriel Ferreira
2023-11-11 12:14:49 -03:00
parent 32e11cc445
commit e7f998b4aa
2 changed files with 6 additions and 4 deletions

View File

@@ -90,8 +90,10 @@ class Axes(object):
dx_over_ndiv = dx / ndiv
for n in range(5): # iterate 5 times to find optimum division size
#/* div: length of each division */
tbe = math.log10(dx_over_ndiv)#; /* looking for approx. 'ndiv' divisions in a length 'dx' */
div = pow(10, rint(tbe))#; /* div: power of 10 closest to dx/ndiv */
#/* looking for approx. 'ndiv' divisions in a length 'dx' */
tbe = math.log10(dx_over_ndiv)
#/* div: power of 10 closest to dx/ndiv */
div = pow(10, rint(tbe))
if math.fabs(div/2 - dx_over_ndiv) < math.fabs(div - dx_over_ndiv): #/* test if div/2 is closer to dx/ndiv */
div /= 2
elif math.fabs(div*2 - dx_over_ndiv) < math.fabs(div - dx_over_ndiv):

View File

@@ -33,8 +33,8 @@ if [ "$filterin" != "" ] ; then
echo "$filterin"
#./src/visualizer/visualizer/hud.py:93-94
tbe = math.log10(dx_over_ndiv)#; /* looking for approx. 'ndiv' divisions in a length 'dx' */
div = pow(10, rint(tbe))#; /* div: power of 10 closest to dx/ndiv */
tbe = math.log10(dx_over_ndiv)
div = pow(10, rint(tbe))
#./utils/tests/test-ns3.py:2944
'convert {image} -colorspace HSI -channel b -separate +channel -scale 1x1 -format "%[fx:100*u]" info:'