Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.LoadĬ:\WINDOWS\Microsoft.NET\Framework\v9\vbc.exe Prog.vb ' attempt to get the axis limits as "neater" numbersĬhart1.ChartAreas(0).AxisX.IsStartedFromZero = FalseĬhart1.ChartAreas(0).AxisY.IsStartedFromZero = FalseĬhart1.ChartAreas(0).AxisX.Minimum = minXĬhart1.ChartAreas(0).AxisX.Maximum = maxXĬhart1.ChartAreas(0).AxisY.Minimum = minYĬhart1.ChartAreas(0).AxisY.Maximum = maxY 'TODO: inform user of bad lines in a better wayĬhart1.Series(0).ChartType = Throw New FileNotFoundException(String.Format("File not found in LoadData: "")." & vbCrLf, lineNumber, parts.Count()) Public Shared Function RoundToSignificantDigits(ByVal x As Double, ByVal n As Integer) As Doubleĭim d As Double = Math.Ceiling(Math.Log10(Math.Abs(x)))ĭim magnitude As Double = Math.Pow(10, power)ĭim shifted As Double = Math.Round(x * magnitude, MidpointRounding.AwayFromZero) The code is also shown below: Imports System I am trying compiling with command line a sample program using MSChart control from here:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |