// Create a new FormsPlot object FormsPlot formsPlot = new FormsPlot { Size = new Size(450, 300), // Set the size of the plot Location = new Point(num, num2), // Set the location of the plot BackColor = Color.Red // Set the background color of the plot };

// Set the title of the plot formsPlot.Plot.Title('[' + text4 + '] ' + array3[3], true);

formsPlot.Plot.XAxis.TickLabelStyle(null, null, null, null, 90f); // Set the tick label style of the X-axis formsPlot.Enabled = false; // Disable the plot base.Controls.Add(formsPlot); // Add the plot to the base control formsPlot.Name = text4 + '' + array3[3]; // Set the name of the plot num += 460; // Increment the value of num list.Add(text4 + '' + array3[3]); // Add the name of the plot to the list

// Find the FormsPlot object with the specified name formsPlot = (FormsPlot)base.Controls.Find(text4 + '_' + array3[3], false)[0];

// Set manual tick positions and labels for the X-axis formsPlot.Plot.XAxis.ManualTickPositions(positions, labels);

// Add horizontal lines to the plot formsPlot.Plot.AddHorizontalLine(Conversions.ToDouble(array3[5]), Color.Red); formsPlot.Plot.AddHorizontalLine(Conversions.ToDouble(array3[6]), Color.Blue);

// Add a point to the plot formsPlot.Plot.AddPoint(num3, Conversions.ToDouble(array3[4]), Color.DeepSkyBlue, 8f, MarkerShape.filledCircle, array3[0] + text2);


原文地址: https://www.cveoy.top/t/topic/piWe 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录