{ //锁定垂直缩放 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...
Cursor = Configuration.DefaultCursor; //鼠标样式 EventFactory = new UIEventFactory(Configuration, Settings, Plot); //事件构造器 EventsProcessor = new EventsProcessor( renderAction: (lowQuality) => Render(lowQuality), renderDelay: (int)Configuration.ScrollWheelZoomHighQualityDelay); //执行事件 ControlN...
//鼠标右键拖拽缩放 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...
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...
private float ScaledHeight => (float)(Bounds.Height * Configuration.DpiStretchRatio); [Obsolete("Reference Plot instead of plt")] public ScottPlot.Plot plt => Plot; static AvaPlot() { ContextMenuProperty.Changed.AddClassHandler<AvaPlot>((plot, args) => plot.ContextMenuChanged(args)); ...
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...
<!--- SourceLink configuration --> <EmbedUntrackedSources>true</EmbedUntrackedSources> 10 changes: 7 additions & 3 deletions 10 src/ScottPlot5/ScottPlot5 Controls/ScottPlot.WPF/WpfPlotBase.cs Original file line numberDiff line numberDiff line change @@ -1,17 +1,21 @@ using System.Windo...
this.formsPlot1.Configuration.LockVerticalAxis = this.cbLockVertical.Checked; } } } 本期教程为项目scottplot图表控件增加了对图表进行缩放,X轴锁定缩放,Y轴锁定缩放的功能,但是光有这些内容还是不能满足我们的要求,下期我将为项目增加十字光标尺功能。感谢各位朋友持续关注我的文章更新。欢迎各位朋友点赞、关注、...
publicScottPlot.Control.Configuration Configuration=>Backend.Configuration; publiceventEventHandlerAxesChanged; publiceventEventHandlerRightClicked; privatereadonlyScottPlot.Control.ControlBackEndBackend; privatereadonlyDictionary<ScottPlot.Cursor,System.Windows.Forms.Cursor>Cursors; ...
wpfPlot.Configuration.MiddleClickDragZoom = false; Please note, this option is broken! If this is set it will draw the rectangle as normal, and once it's released it will not zoom and the rectangle will not disappear. I'll make a PR to address this. I'm glad I tested this before ju...