diff --git a/code/WCM0007.svg b/code/WCM0007.svg index 6072060..b2a5f83 100644 --- a/code/WCM0007.svg +++ b/code/WCM0007.svg @@ -1,4 +1,4 @@ - + diff --git a/code/will_reader.py b/code/will_reader.py index 2c01ce8..be69802 100644 --- a/code/will_reader.py +++ b/code/will_reader.py @@ -55,7 +55,7 @@ lineData : array with arrays of lineWhidths """ for x, y, lineWidth in zip(xData, yData, lineData): - plt.plot(x,y,'k', linewidth=(lineWidth**5)/20) + plt.plot(x,[-y for y in y],'k', linewidth=(lineWidth**5)/20) plt.axis('equal') @@ -72,18 +72,30 @@ lineData : array with arrays of lineWhidths TODO: Take linewidhts into consideration """ - svgStr = f' ' + svgStr = f'' + + minX = 10000 + minY = 10000 + maxX = -10000 + maxY = -10000 for arrayX, arrayY in zip(xData, yData): - svgStr += f'\n' - svgStr += '' + svgWidth = maxX-minX + svgHeight = maxY-minY + svgStr = f' ' + svgStr + '' return svgStr @@ -199,7 +211,7 @@ messageBytes : message to decode factor = 10**decimalPrecision x = cumsum(dx, factor) - y = cumsum(dy, -factor) + y = cumsum(dy, factor) debugPrint(f'field: {field}, wire type:{wireType}') debugPrint(f'strLen: {strLen}')