Smith チャートのクイックスタート
プロットに Smith チャートを追加し、そのメソッドを使用してインピーダンスを、他のプロットコンポーネントの配置に使用できるデカルト座標に変換します。
ScottPlot.Plot myPlot = new();
var smith = myPlot.Add.SmithChartAxis();
// Smith チャート上のインピーダンス位置をプロット上の 2D 位置に変換する
double resistance = 0.2;
double reactance = -0.5;
Coordinates location = smith.GetCoordinates(resistance, reactance);
// その位置を使用して従来のプロットコンポーネントを追加する
myPlot.Add.Marker(location, MarkerShape.FilledCircle, size: 15, Colors.Red);
var txt = myPlot.Add.Text("0.2 - j 0.5", location);
txt.LabelStyle.FontSize = 24;
txt.LabelStyle.Bold = true;
txt.LabelStyle.ForeColor = Colors.Red;
myPlot.SavePng("demo.png", 400, 300);
このレシピは、Smith チャートカテゴリにある多数のレシピの 1 つです
