| | |
| | | var display_x_flow = _coordinate.QL.CoordMinX; |
| | | for (int i = 0; i < _coordinate.QL.GridNumberX + 1; i++) |
| | | { |
| | | axis_x_flow_labels.Add(new CustomAxisLabel(display_x_flow.ToString("N0"), display_x_flow)); |
| | | var x = _coordinate.QL.CoordSpaceX < 1 ? $"{display_x_flow:N1}" : $"{display_x_flow:N0}"; |
| | | axis_x_flow_labels.Add(new CustomAxisLabel(x, display_x_flow)); |
| | | display_x_flow = display_x_flow + _coordinate.QL.CoordSpaceX; |
| | | } |
| | | |
| | |
| | | var display_y_head_loss = _coordinate.QL.CoordMinY + _coordinate.QL.CoordSpaceY * _coordinate.QL.StartLineNoY; |
| | | for (int i = _coordinate.QL.StartLineNoY; i < _coordinate.QL.EndLineNoY + 1; i++) |
| | | { |
| | | var y = display_y_head_loss < 1 ? $"{display_y_head_loss:N1}" : $"{display_y_head_loss:N0}"; |
| | | var y = _coordinate.QL.CoordSpaceY < 1 ? $"{display_y_head_loss:N1}" : $"{display_y_head_loss:N0}"; |
| | | axis_y_head_loss_labels.Add(new CustomAxisLabel(y, display_y_head_loss)); |
| | | display_y_head_loss = display_y_head_loss + _coordinate.QL.CoordSpaceY; |
| | | } |
| | |
| | | var display_x_opening = _coordinate.OL.CoordMinX; |
| | | for (int i = 0; i < _coordinate.OL.GridNumberX + 1; i++) |
| | | { |
| | | axis_x_opening_labels.Add(new CustomAxisLabel(display_x_opening.ToString("N0"), display_x_opening)); |
| | | var x = _coordinate.OL.CoordSpaceX < 1 ? $"{display_x_opening:N1}" : $"{display_x_opening:N0}"; |
| | | axis_x_opening_labels.Add(new CustomAxisLabel(x, display_x_opening)); |
| | | display_x_opening = display_x_opening + _coordinate.OL.CoordSpaceX; |
| | | } |
| | | |
| | |
| | | var display_y_k_loss = _coordinate.OL.CoordMinY + _coordinate.OL.CoordSpaceY * _coordinate.OL.StartLineNoY; |
| | | for (int i = _coordinate.OL.StartLineNoY; i < _coordinate.OL.EndLineNoY + 1; i++) |
| | | { |
| | | var y = display_y_k_loss < 1 ? $"{display_y_k_loss:N1}" : $"{display_y_k_loss:N0}"; |
| | | var y = _coordinate.OL.CoordSpaceY < 1 ? $"{display_y_k_loss:N1}" : $"{display_y_k_loss:N0}"; |
| | | axis_y_k_loss_labels.Add(new CustomAxisLabel(y, display_y_k_loss)); |
| | | display_y_k_loss = display_y_k_loss + _coordinate.OL.CoordSpaceY; |
| | | } |