{ //锁定垂直缩放 this.formsPlot1.Configuration.LockVerticalAxis = this.cbLockVertical.Checked; } //鼠标移动时处理十字光标 private void formsPlot1_MouseMove(object sender, MouseEventArgs e) { if (CrosshaircheckBox.Checked) { ValueTuple<double, double> mouseCoordinates = this.formsPlot1.GetMouse...
//鼠标右键拖拽缩放 this.formsPlot1.Configuration.RightClickDragZoom = this.cbZoomable.Checked; //鼠标管轮缩放 this.formsPlot1.Configuration.ScrollWheelZoom = this.cbZoomable.Checked; } private void cbLockHorizontal_CheckedChanged(object sender, EventArgs e) { //锁定水平缩放 this.formsPlot1.Configur...
(int)Configuration.ScrollWheelZoomHighQualityDelay); //执行事件 ControlName = name; Reset(width, height);// 此时是width = 1,height =1,主要用于创建Plot实例 } /// /// Reset the back-end by creating an entirely new plot of the given dimensions /// public void Reset(float width, float...
cbEnableViewManagement.Checked; 65 formsPlot1.Configuration.Zoom = !cbEnableViewManagement.Checked; 66 } 67 68 private void btnFull_Click(object sender, EventArgs e) 69 { 70 Logger.ViewFull(); 71 formsPlot1.Plot.Title("Full"); 72 formsPlot1.Refresh(); 73 } 74 75 private void btnJump...
Configuration; }} 在FormsPlot构造时,创建后台管理Backend,并向Backend中注册代理事件,因此Backend的事件由FormsPlot来接管。配置也使用Backend中的配置。 后台管理 /Control/Backend.cs 代码语言:javascript 代码运行次数:0 运行 AI代码解释 public ControlBackEnd(float width, float height, string name = "Unamed...
Configuration.WarnIfRenderNotCalledManually = false; } private void InitializeComponent() { AvaloniaXamlLoader.Load(this); this.AvaPlot1.Configuration.WarnIfRenderNotCalledManually = false; } private void AvaPlot1_Rendered(object sender, EventArgs e) { ScottPlot.Avalonia.AvaPlot AvaPlot1 = this....
publicScottPlot.Control.Configuration Configuration=>Backend.Configuration; publiceventEventHandlerAxesChanged; publiceventEventHandlerRightClicked; privatereadonlyScottPlot.Control.ControlBackEndBackend; privatereadonlyDictionary<ScottPlot.Cursor,System.Windows.Forms.Cursor>Cursors; ...
Controls: Configuration.AddLinkedControl() simplifies axis sharing across multiple controls (#2402, #2372) Statistics: New ScottPlot.Statistics.Histogram class optimized for simplicity and live data (#2403, #2389) @bukkideme and @Xerxes004 Statistics: Improved bin edge calculations for histograms with...
this.formsPlot1.Configuration.LockVerticalAxis = this.cbLockVertical.Checked; } } } 本期教程为项目scottplot图表控件增加了对图表进行缩放,X轴锁定缩放,Y轴锁定缩放的功能,但是光有这些内容还是不能满足我们的要求,下期我将为项目增加十字光标尺功能。感谢各位朋友持续关注我的文章更新。欢迎各位朋友点赞、关注、...
Controls: Configuration.AddLinkedControl() simplifies axis sharing across multiple controls (#2402, #2372) Statistics: New ScottPlot.Statistics.Histogram class optimized for simplicity and live data (#2403, #2389) @bukkideme and @Xerxes004 Statistics: Improved bin edge calculations for histograms with...