ScottPlot
|
A polygon is a collection of X/Y points that are all connected to form a closed shape. Polygons can be optionally filled with a color or a gradient. More...
Public Member Functions | |
Polygon (Coordinates[] coords) | |
Creates a new polygon. | |
override string | ToString () |
void | UpdateCoordinates (Coordinates[] newCoordinates) |
AxisLimits | GetAxisLimits () |
Return the 2D area (in coordinate space) occupied by the data contained in this plottable. | |
virtual void | Render (RenderPack rp) |
Draw the data from this plottable into the data area defined in the Axes. By default the surface is already clipped to the data area, but this can be cleared inside the plottable. | |
Properties | |
static Polygon | Empty [get] |
bool | IsEmpty = false [get] |
Coordinates[] | Coordinates = Array.Empty<Coordinates>() [get] |
string | Label [get, set] |
string | LegendText = string.Empty [get, set] |
If populated, this text appears in the legend. | |
bool | IsVisible = true [get, set] |
Toggles whether this plottable is shown and contributes to the automatic axis limit detection. The calling method will check this variable (it does not need to be checked inside the Render method). | |
LineStyle | LineStyle = new() { Width = 1 } [get, set] |
float | LineWidth [get, set] |
LinePattern | LinePattern [get, set] |
Color | LineColor [get, set] |
FillStyle | FillStyle = new() [get, set] |
Color | FillColor [get, set] |
Color | FillHatchColor [get, set] |
IHatch? | FillHatch [get, set] |
MarkerStyle | MarkerStyle = new() [get, set] |
MarkerShape | MarkerShape [get, set] |
float | MarkerSize [get, set] |
Color | MarkerFillColor [get, set] |
Color | MarkerLineColor [get, set] |
Color | MarkerColor [get, set] |
float | MarkerLineWidth [get, set] |
int | PointCount [get] |
IAxes | Axes = new Axes() [get, set] |
This object performs coordinate/pixel translation at render time based on the latest data area. It stores the axes to use for this plottable and also the data area (in pixels) updated just before each render. If this object is null it will be constructed using the default X and Y axes at render time. | |
IEnumerable< LegendItem > | LegendItems [get] |
Items which will appear in the legend. | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() |
A polygon is a collection of X/Y points that are all connected to form a closed shape. Polygons can be optionally filled with a color or a gradient.
|
inline |
Creates a new polygon.
coords | The axis dependant vertex coordinates. |
|
inline |
Return the 2D area (in coordinate space) occupied by the data contained in this plottable.
Implements ScottPlot.IPlottable.
|
inlinevirtual |
Draw the data from this plottable into the data area defined in the Axes. By default the surface is already clipped to the data area, but this can be cleared inside the plottable.
Implements ScottPlot.IPlottable.
|
inline |
|
inline |
This object performs coordinate/pixel translation at render time based on the latest data area. It stores the axes to use for this plottable and also the data area (in pixels) updated just before each render. If this object is null it will be constructed using the default X and Y axes at render time.
Implements ScottPlot.IPlottable.
|
get |
|
staticget |
|
getset |
Implements ScottPlot.IHasFill.
|
getset |
Implements ScottPlot.IHasFill.
|
getset |
Implements ScottPlot.IHasFill.
|
getset |
Implements ScottPlot.IHasFill.
|
get |
|
getset |
Toggles whether this plottable is shown and contributes to the automatic axis limit detection. The calling method will check this variable (it does not need to be checked inside the Render method).
Implements ScottPlot.IPlottable.
|
getset |
|
get |
Items which will appear in the legend.
Implements ScottPlot.IPlottable.
|
getset |
If populated, this text appears in the legend.
Implements ScottPlot.IHasLegendText.
|
getset |
Implements ScottPlot.IHasLine.
|
getset |
Implements ScottPlot.IHasLine.
|
getset |
Implements ScottPlot.IHasLine.
|
getset |
Implements ScottPlot.IHasLine.
|
getset |
Implements ScottPlot.IHasMarker.
|
getset |
Implements ScottPlot.IHasMarker.
|
getset |
Implements ScottPlot.IHasMarker.
|
getset |
Implements ScottPlot.IHasMarker.
|
getset |
Implements ScottPlot.IHasMarker.
|
getset |
Implements ScottPlot.IHasMarker.
|
getset |
Implements ScottPlot.IHasMarker.
|
get |