ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
ScottPlot.Plottables.PieBase Class Referenceabstract
Inheritance diagram for ScottPlot.Plottables.PieBase:
ScottPlot.IPlottable ScottPlot.IManagesAxisLimits ScottPlot.IHasLine ScottPlot.Plottables.Coxcomb ScottPlot.Plottables.Pie

Public Member Functions

virtual void UpdateAxisLimits (Plot plot)
 
AxisLimits GetAxisLimits ()
 Return the 2D area (in coordinate space) occupied by the data contained in this plottable.
 
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

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.
 
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).
 
Angle Rotation = Angle.FromDegrees(-90) [get, set]
 
IEnumerable< LegendItemLegendItems [get]
 Items which will appear in the legend.
 
Color LineColor [get, set]
 
LinePattern LinePattern [get, set]
 
LineStyle LineStyle = new() { Width = 1 } [get, set]
 
float LineWidth [get, set]
 
double Padding = 0.2 [get, set]
 
double SliceLabelDistance = 1.2 [get, set]
 
IList< PieSliceSlices = [] [get, set]
 
bool ManageAxisLimits = true [get, set]
 Enable this to modify the axis limits at render time to achieve "square axes" where the units/px values are equal for horizontal and vertical axes, allowing circles to always appear as circles instead of ellipses.
 
- Properties inherited from ScottPlot.IPlottable
- Properties inherited from ScottPlot.IManagesAxisLimits
- Properties inherited from ScottPlot.IHasLine

Member Function Documentation

◆ GetAxisLimits()

AxisLimits ScottPlot.Plottables.PieBase.GetAxisLimits ( )
abstract

Return the 2D area (in coordinate space) occupied by the data contained in this plottable.

Implements ScottPlot.IPlottable.

◆ Render()

void ScottPlot.Plottables.PieBase.Render ( RenderPack  rp)
abstract

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.

◆ UpdateAxisLimits()

virtual void ScottPlot.Plottables.PieBase.UpdateAxisLimits ( Plot  plot)
inlinevirtual

Property Documentation

◆ Axes

IAxes ScottPlot.Plottables.PieBase.Axes = new Axes()
getset

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.

◆ IsVisible

bool ScottPlot.Plottables.PieBase.IsVisible = true
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.

◆ LegendItems

IEnumerable<LegendItem> ScottPlot.Plottables.PieBase.LegendItems
get

Items which will appear in the legend.

Implements ScottPlot.IPlottable.

◆ LineColor

Color ScottPlot.Plottables.PieBase.LineColor
getset

Implements ScottPlot.IHasLine.

◆ LinePattern

LinePattern ScottPlot.Plottables.PieBase.LinePattern
getset

Implements ScottPlot.IHasLine.

◆ LineStyle

LineStyle ScottPlot.Plottables.PieBase.LineStyle = new() { Width = 1 }
getset

Implements ScottPlot.IHasLine.

◆ LineWidth

float ScottPlot.Plottables.PieBase.LineWidth
getset

Implements ScottPlot.IHasLine.

◆ ManageAxisLimits

bool ScottPlot.Plottables.PieBase.ManageAxisLimits = true
getset

Enable this to modify the axis limits at render time to achieve "square axes" where the units/px values are equal for horizontal and vertical axes, allowing circles to always appear as circles instead of ellipses.

Implements ScottPlot.IManagesAxisLimits.

◆ Padding

double ScottPlot.Plottables.PieBase.Padding = 0.2
getset

◆ Rotation

Angle ScottPlot.Plottables.PieBase.Rotation = Angle.FromDegrees(-90)
getset

◆ SliceLabelDistance

double ScottPlot.Plottables.PieBase.SliceLabelDistance = 1.2
getset

◆ Slices

IList<PieSlice> ScottPlot.Plottables.PieBase.Slices = []
getset

The documentation for this class was generated from the following file: