[SCOTTPLOT/WINFORM] Plot 클래스 : Style 메소드를 사용해 Seaborn 스타일 차트 만들기
ScottPlot/WinForm 2022. 2. 1. 19:27728x90
728x170
▶ MainForm.cs
using System.Windows.Forms;
using ScottPlot;
namespace TestProject
{
/// <summary>
/// 메인 폼
/// </summary>
public partial class MainForm : Form
{
//////////////////////////////////////////////////////////////////////////////////////////////////// Constructor
////////////////////////////////////////////////////////////////////////////////////////// Public
#region 생성자 - MainForm()
/// <summary>
/// 생성자
/// </summary>
public MainForm()
{
InitializeComponent();
Plot plot = new Plot(800, 600);
plot.AddSignal(DataGen.Sin(51));
plot.AddSignal(DataGen.Cos(51));
plot.Style(Style.Seaborn);
plot.Title("Style.Seaborn");
plot.XLabel("X축");
plot.YLabel("Y축");
this.formsPlot.Reset(plot);
this.formsPlot.Refresh();
}
#endregion
}
}
728x90
그리드형(광고전용)