Table of Contents

Interface IPanel

Namespace
ScottPlot
Assembly
ScottPlot.dll

A panel is a rectangular region outside the data area of a plot. Example panels include axes, colorbars, and titles

public interface IPanel
Extension Methods

Properties

Edge

Indicates which edge of the data rectangle this panel lays on

Edge Edge { get; }

Property Value

Edge

IsVisible

If false, the panel will not be displayed or report any size

bool IsVisible { get; set; }

Property Value

bool

MaximumSize

Disallow the panel to be larger than this

float MaximumSize { get; set; }

Property Value

float

MinimumSize

Disallow the panel to be smaller than this

float MinimumSize { get; set; }

Property Value

float

ShowDebugInformation

Enable this to display extra information on the axis to facilitate development

bool ShowDebugInformation { get; set; }

Property Value

bool

Methods

GetPanelRect(PixelRect, float, float)

Return the rectangle for this panel

PixelRect GetPanelRect(PixelRect dataRect, float size, float offset)

Parameters

dataRect PixelRect
size float
offset float

Returns

PixelRect

Measure()

Return the size (in pixels) of the panel in the dimension perpendicular to the edge it lays on

float Measure()

Returns

float

Render(RenderPack, float, float)

Draw this panel on a canvas

void Render(RenderPack rp, float size, float offset)

Parameters

rp RenderPack
size float

size of this panel (pixel units)

offset float

distance from the edge of this panel to the edge of the data area