using ScottPlot.WPF; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; namespace CordoPlot { /// /// Interaktionslogik für GridCopy.xaml /// public partial class GridCopy : Window { public GridCopy() { InitializeComponent(); } public WpfPlot Chart { get; internal set; } public void ShowChart(List lastListOfIndex, List lastListOfValues,string title) { WpfPlot1.Plot.Add.Scatter(lastListOfIndex.ToArray(), lastListOfValues.ToArray(), ScottPlot.Colors.Blue); WpfPlot1.Plot.Title(title); WpfPlot1.Plot.Axes.AutoScale(); WpfPlot1.Refresh(); } } }