|
| 1 | +using Plotly.NET; |
| 2 | +using Plotly.NET.LayoutObjects; |
| 3 | +using Plotly.NET.TraceObjects; |
| 4 | + |
| 5 | +namespace Plotly.NET.CSharp |
| 6 | +{ |
| 7 | + public static partial class Chart |
| 8 | + { |
| 9 | + /// <summary> |
| 10 | + /// Creates a Scatter plot on a smith coordinate system. |
| 11 | + /// |
| 12 | + /// In general, ScatterSmith charts plot complex numbers on a transformed two-dimensional Cartesian complex plane. Complex numbers with positive real parts map inside the circle. Those with negative real parts map outside the circle. |
| 13 | + /// |
| 14 | + /// ScatterSmith charts are the basis of PointSmith, LineSmith, and BubbleSmith Charts, and can be customized as such. We also provide abstractions for those: Chart.LineSmith, Chart.PointSmith, Chart.BubbleSmith |
| 15 | + /// </summary> |
| 16 | + /// <param name="real">Sets the real component of the data, in units of normalized impedance such that real=1, imag=0 is the center of the chart.</param> |
| 17 | + /// <param name="imag">Sets the imaginary component of the data, in units of normalized impedance such that real=1, imag=0 is the center of the chart.</param> |
| 18 | + /// <param name="mode">Determines the drawing mode for this scatter trace.</param> |
| 19 | + /// <param name="Name">Sets the trace name. The trace name appear as the legend item and on hover</param> |
| 20 | + /// <param name="ShowLegend">Determines whether or not an item corresponding to this trace is shown in the legend.</param> |
| 21 | + /// <param name="Opacity">Sets the opactity of the trace</param> |
| 22 | + /// <param name="MultiOpacity">Sets the opactity of individual datum markers</param> |
| 23 | + /// <param name="Text">Sets a text associated with each datum</param> |
| 24 | + /// <param name="MultiText">Sets individual text for each datum</param> |
| 25 | + /// <param name="TextPosition">Sets the position of text associated with each datum</param> |
| 26 | + /// <param name="MultiTextPosition">Sets the position of text associated with individual datum</param> |
| 27 | + /// <param name="MarkerColor">Sets the color of the marker</param> |
| 28 | + /// <param name="MarkerColorScale">Sets the colorscale of the marker</param> |
| 29 | + /// <param name="MarkerOutline">Sets the outline of the marker</param> |
| 30 | + /// <param name="MarkerSymbol">Sets the marker symbol for each datum</param> |
| 31 | + /// <param name="MultiMarkerSymbol">Sets the marker symbol for each individual datum</param> |
| 32 | + /// <param name="Marker">Sets the marker (use this for more finegrained control than the other marker-associated arguments)</param> |
| 33 | + /// <param name="LineColor">Sets the color of the line</param> |
| 34 | + /// <param name="LineColorScale">Sets the colorscale of the line</param> |
| 35 | + /// <param name="LineWidth">Sets the width of the line</param> |
| 36 | + /// <param name="LineDash">sets the drawing style of the line</param> |
| 37 | + /// <param name="Line">Sets the line (use this for more finegrained control than the other line-associated arguments)</param> |
| 38 | + /// <param name="Fill">Sets the area to fill with a solid color. Defaults to "none" unless this trace is stacked, then it gets "tonexty" ("tonextx") if `orientation` is "v" ("h") Use with `FillColor` if not "none". "tozerox" and "tozeroy" fill to x=0 and y=0 respectively. "tonextx" and "tonexty" fill between the endpoints of this trace and the endpoints of the trace before it, connecting those endpoints with straight lines (to make a stacked area graph); if there is no trace before it, they behave like "tozerox" and "tozeroy". "toself" connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. "tonext" fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like "toself" if there is no trace before it. "tonext" should not be used if one trace does not enclose the other. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order.</param> |
| 39 | + /// <param name="FillColor">ets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available.</param> |
| 40 | + /// <param name="UseDefaults">If set to false, ignore the global default settings set in `Defaults`</param> |
| 41 | + public static GenericChart.GenericChart ScatterSmith<RealType, ImagType, TextType>( |
| 42 | + IEnumerable<RealType> real, |
| 43 | + IEnumerable<ImagType> imag, |
| 44 | + StyleParam.Mode mode, |
| 45 | + string? Name = null, |
| 46 | + bool? ShowLegend = null, |
| 47 | + double? Opacity = null, |
| 48 | + IEnumerable<double>? MultiOpacity = null, |
| 49 | + TextType? Text = null, |
| 50 | + IEnumerable<TextType>? MultiText = null, |
| 51 | + StyleParam.TextPosition? TextPosition = null, |
| 52 | + IEnumerable<StyleParam.TextPosition>? MultiTextPosition = null, |
| 53 | + Color? MarkerColor = null, |
| 54 | + StyleParam.Colorscale? MarkerColorScale = null, |
| 55 | + Line? MarkerOutline = null, |
| 56 | + StyleParam.MarkerSymbol? MarkerSymbol = null, |
| 57 | + IEnumerable<StyleParam.MarkerSymbol>? MultiMarkerSymbol = null, |
| 58 | + Marker? Marker = null, |
| 59 | + Color? LineColor = null, |
| 60 | + StyleParam.Colorscale? LineColorScale = null, |
| 61 | + double? LineWidth = null, |
| 62 | + StyleParam.DrawingStyle? LineDash = null, |
| 63 | + Line? Line = null, |
| 64 | + StyleParam.Fill? Fill = null, |
| 65 | + Color? FillColor = null, |
| 66 | + bool? UseDefaults = true |
| 67 | + ) |
| 68 | + where RealType : IConvertible |
| 69 | + where ImagType : IConvertible |
| 70 | + where TextType : class, IConvertible |
| 71 | + => |
| 72 | + Plotly.NET.ChartSmith.Chart.ScatterSmith<RealType, ImagType, TextType>( |
| 73 | + real: real, |
| 74 | + imag: imag, |
| 75 | + mode: mode, |
| 76 | + Name: Name.ToOption(), |
| 77 | + ShowLegend: ShowLegend.ToOptionV(), |
| 78 | + Opacity: Opacity.ToOptionV(), |
| 79 | + MultiOpacity: MultiOpacity.ToOption(), |
| 80 | + Text: Text.ToOption(), |
| 81 | + MultiText: MultiText.ToOption(), |
| 82 | + TextPosition: TextPosition.ToOption(), |
| 83 | + MultiTextPosition: MultiTextPosition.ToOption(), |
| 84 | + MarkerColor: MarkerColor.ToOption(), |
| 85 | + MarkerColorScale: MarkerColorScale.ToOption(), |
| 86 | + MarkerOutline: MarkerOutline.ToOption(), |
| 87 | + MarkerSymbol: MarkerSymbol.ToOption(), |
| 88 | + MultiMarkerSymbol: MultiMarkerSymbol.ToOption(), |
| 89 | + Marker: Marker.ToOption(), |
| 90 | + LineColor: LineColor.ToOption(), |
| 91 | + LineColorScale: LineColorScale.ToOption(), |
| 92 | + LineWidth: LineWidth.ToOptionV(), |
| 93 | + LineDash: LineDash.ToOption(), |
| 94 | + Line: Line.ToOption(), |
| 95 | + Fill: Fill.ToOption(), |
| 96 | + FillColor: FillColor.ToOption(), |
| 97 | + UseDefaults: UseDefaults.ToOptionV() |
| 98 | + ); |
| 99 | + } |
| 100 | +} |
0 commit comments