ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
ScottPlot.Plottables.HistogramBars Class Reference
Inheritance diagram for ScottPlot.Plottables.HistogramBars:
ScottPlot.IPlottable

Public Member Functions

 HistogramBars (Histogram histogram)
 
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

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).
 
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< LegendItemLegendItems [get]
 Items which will appear in the legend.
 
Bar[] Bars [get, set]
 
LabelStyle LabelStyle = new() { IsVisible = false } [get, set]
 
double BarWidthFraction [set]
 
- Properties inherited from ScottPlot.IPlottable

Constructor & Destructor Documentation

◆ HistogramBars()

ScottPlot.Plottables.HistogramBars.HistogramBars ( Histogram  histogram)
inline

Member Function Documentation

◆ GetAxisLimits()

AxisLimits ScottPlot.Plottables.HistogramBars.GetAxisLimits ( )
inline

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

Implements ScottPlot.IPlottable.

◆ Render()

virtual void ScottPlot.Plottables.HistogramBars.Render ( RenderPack  rp)
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.

Property Documentation

◆ Axes

IAxes ScottPlot.Plottables.HistogramBars.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.

◆ Bars

Bar [] ScottPlot.Plottables.HistogramBars.Bars
getset

◆ BarWidthFraction

double ScottPlot.Plottables.HistogramBars.BarWidthFraction
set

◆ IsVisible

bool ScottPlot.Plottables.HistogramBars.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.

◆ LabelStyle

LabelStyle ScottPlot.Plottables.HistogramBars.LabelStyle = new() { IsVisible = false }
getset

◆ LegendItems

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

Items which will appear in the legend.

Implements ScottPlot.IPlottable.


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