网站服务器的DNs怎么查,网站为什么不收录,绿色资源网在线观看,下载做网站ftp具体步骤一、ScottPlot#xff08;v5.1.57#xff09;ScottPlot 是一个免费、开源的 .NET 绘图库#xff0c;专注于高性能、易用性和轻量级#xff0c;支持 Windows Forms、WPF、ASP.NET、Blazor、MAUI 等多种.NET 平台#xff0c;适合绘制折线图、散点图、柱状图、热力图等数十种…一、ScottPlotv5.1.57ScottPlot 是一个免费、开源的 .NET 绘图库专注于高性能、易用性和轻量级支持 Windows Forms、WPF、ASP.NET、Blazor、MAUI 等多种.NET 平台适合绘制折线图、散点图、柱状图、热力图等数十种图表类型尤其适合科学计算、数据可视化场景。说明可能版本差异网上提供的很多方法均无效包括AI提供的多种方法几乎都有问题。1.1 汉字乱码问题X轴标签汉字支持formsPlot.Plot.Axes.Bottom.Label.FontName “Microsoft YaHei UI”;Y轴标签汉字支持formsPlot.Plot.Axes.Left.Label.FontName “Microsoft YaHei UI”;标题汉字支持formsPlot.Plot.Axes.Title.Label.FontName “Microsoft YaHei UI”;图例汉字支持formsPlot.Plot.Legend.FontName “Microsoft YaHei UI”;全局字体formsPlot.Plot.Font.Set(“Microsoft YaHei UI”);全局字体加粗formsPlot.Plot.Font.Set(“Microsoft YaHei UI”,FontWeight.Bold);1.2 曲线图圆滑曲线图默认直连var scatterPlot formsPlot.Plot.Add.Scatter(times, prices);圆滑弧度属性scatterPlot.Smooth true;1.3 图例显示位置控制右上角默认右下角formsPlot.Plot.Legend.Alignment Alignment.UpperRight;1.4 网格及坐标轴控制布满formsPlot.Plot.Axes.AutoScale();隐藏网格formsPlot.Plot.HideGrid();隐藏坐标轴formsPlot.Plot.Layout.Frameless(true);四周边距控制(左右下上)formsPlot.Plot.Layout.Fixed(new PixelPadding(80,20,50,50));1.5 关于X轴显示时间问题关键formsPlot.Plot.Axes.DateTimeTicksBottom();时间显示格式化formsPlot.Plot.Axes.Bottom.TickGenerator new ScottPlot.TickGenerators.DateTimeAutomatic{LabelFormatter dt dt.ToString(“HH:mm:ss”)//格式};1.6 其他1.隐藏图例formsPlot.Plot.Legend.IsVisible false;2.隐藏标题formsPlot.Plot.Axes.Title.IsVisible false;3.Y轴标签倾斜formsPlot.Plot.Axes.Left.Label.Rotation -45;4.X轴标签斜角formsPlot.Plot.Axes.Bottom.Label.Rotation -45;5.标题其他样式formsPlot.Plot.Axes.Title.Label.属性名值;6.X轴标签样式formsPlot.Plot.Axes.Bottom.Label.属性名值;7.清空formsPlot.Plot.Clear();8.标题formsPlot.Plot.Title(title);9.绘制刷新formsPlot.Refresh();10.数据区背景色formsPlot.Plot.DataBackground.Color ScottPlot.Color.FromHex(“#1f1f1f”);11.图形背景色formsPlot.Plot.FigureBackground.Color ScottPlot.Color.FromHex(“#181818”);12.隐藏标题formsPlot.Plot.Title(false);13.标题位置formsPlot.Plot.Axes.Title.FullFigureCenter true;14.图表外边框样式formsPlot.Plot.FigureBordernew(){//图标区ColorColors.Magenta,Width1,PatternLinePattern.Dotted,};15.数据区外边框样式formsPlot.Plot.DataBordernew(){//数据区ColorColors.Green,Width1,PatternLinePattern.DenselyDashed,};16.坐标轴隐藏formsPlot.Plot.Axes.Frame(false);//formsPlot.Plot.Layout.Frameless(true);17.缩放因子formsPlot1.Plot.ScaleFactor 2;//图表放大2倍18.线条模式细线单像素更丝滑formsPlot.Plot.Axes.Hairline(true);二、实例测试及个别示例代码2.1 示例12.2 其他示例2.2.1 Y轴填充double[]xsGenerate.Consecutive(51);double[]ysGenerate.Sin(51);varspformsPlot1.Plot.Add.Scatter(xs,ys);sp.FillYtrue;sp.FillYColorsp.Color.WithAlpha(.2);formsPlot1.Refresh();2.2.2 上填充、下填充double[]xsGenerate.Consecutive(51);double[]ysGenerate.Sin(51);varspformsPlot1.Plot.Add.Scatter(xs,ys);sp.FillYtrue;sp.FillYValue0;sp.FillYAboveColorColors.Green.WithAlpha(.2);sp.FillYBelowColorColors.Red.WithAlpha(.2);formsPlot1.Refresh();2.2.3 渐变色填充double[]xsGenerate.Consecutive(51);double[]ysGenerate.Sin(51);varpolyformsPlot1.Plot.Add.ScatterLine(xs,ys);poly.FillYtrue;// colors are placed at specific positions on the X axispoly.AxisGradientDirectionAxisGradientDirection.Horizontal;//放射方向poly.ColorPositions.Add(new(Colors.Red,0));poly.ColorPositions.Add(new(Colors.Orange,10));poly.ColorPositions.Add(new(Colors.Yellow,20));poly.ColorPositions.Add(new(Colors.Green,30));poly.ColorPositions.Add(new(Colors.Blue,40));poly.ColorPositions.Add(new(Colors.Violet,50));formsPlot1.Refresh();