B2012-169 – x/y plot was printing very small and straddled the top of the page.
This commit is contained in:
parent
3534b9bca0
commit
2946d5b644
@ -392,7 +392,10 @@ namespace XYPlots
|
|||||||
string[] xystr = NextPiece().Split(sepchar);
|
string[] xystr = NextPiece().Split(sepchar);
|
||||||
x = double.Parse(xystr[0]);
|
x = double.Parse(xystr[0]);
|
||||||
char[] trimEndDot = { '.' }; // Wolf Creek OFN SB-008, figure 3 had a string like 50.0. so trim the ending '.'
|
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])
|
if (doLOG10[flag, X])
|
||||||
retval.xyValue[X] = (int)(Offset[flag, X] + Scale[flag, X] * Math.Log10(x) + .5);
|
retval.xyValue[X] = (int)(Offset[flag, X] + Scale[flag, X] * Math.Log10(x) + .5);
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user