laatzen/Common/CordoPlot/GridCopy.xaml.cs
roland.drabesch@xyleminc.com 71f3909c84 cordo plot
2026-02-10 09:25:09 +01:00

41 lines
1.0 KiB
C#

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
{
/// <summary>
/// Interaktionslogik für GridCopy.xaml
/// </summary>
public partial class GridCopy : Window
{
public GridCopy()
{
InitializeComponent();
}
public WpfPlot Chart { get; internal set; }
public void ShowChart(List<Int32> lastListOfIndex, List<Object> lastListOfValues,string title)
{
WpfPlot1.Plot.Add.Scatter(lastListOfIndex.ToArray(), lastListOfValues.ToArray(), ScottPlot.Colors.Blue);
WpfPlot1.Plot.Title(title);
WpfPlot1.Plot.Axes.AutoScale();
WpfPlot1.Refresh();
}
}
}