B2012-169 – x/y plot was printing very small and straddled the top of the page.

This commit is contained in:
John Jenko 2012-10-05 15:00:11 +00:00
parent 3534b9bca0
commit 2946d5b644

View File

@ -392,7 +392,10 @@ namespace XYPlots
string[] xystr = NextPiece().Split(sepchar);
x = double.Parse(xystr[0]);
char[] trimEndDot = { '.' }; // Wolf Creek OFN SB-008, figure 3 had a string like 50.0. so trim the ending '.'
y = double.Parse(xystr[1].Trim(trimEndDot));
string ystr = xystr[1];
if (ystr.EndsWith(".0")) // bug fix B2012-169, the Trim converted a ".75" value to a "75.0" value
ystr = ystr.Trim(trimEndDot);
y = double.Parse(ystr);
if (doLOG10[flag, X])
retval.xyValue[X] = (int)(Offset[flag, X] + Scale[flag, X] * Math.Log10(x) + .5);
else