Table of Contents

Class IMultiplotExtensions

Namespace
ScottPlot
Assembly
ScottPlot.dll
public static class IMultiplotExtensions
Inheritance
IMultiplotExtensions
Inherited Members

Methods

AddPlot(IMultiplot)

Create a new plot, add it to the collection of subplots, and return it

public static Plot AddPlot(this IMultiplot multiplot)

Parameters

multiplot IMultiplot

Returns

Plot

AddPlot(IMultiplot, Plot)

Add the given plot to the collection of subplots

public static void AddPlot(this IMultiplot multiplot, Plot plot)

Parameters

multiplot IMultiplot
plot Plot

AddPlots(IMultiplot, int)

Add (or remove) plots until the target number of subplots is achieved

public static void AddPlots(this IMultiplot multiplot, int total)

Parameters

multiplot IMultiplot
total int

CollapseVertically(IMultiplot)

Set bottom and top axis size to zero between each subplot so plots can be stacked vertically without any space between them.

public static void CollapseVertically(this IMultiplot multiplot)

Parameters

multiplot IMultiplot

Count(IMultiplot)

Number of subplots in this multiplot

public static int Count(this IMultiplot multiplot)

Parameters

multiplot IMultiplot

Returns

int

GetPlot(IMultiplot, int)

Return the plot at the given index

public static Plot GetPlot(this IMultiplot multiplot, int index)

Parameters

multiplot IMultiplot
index int

Returns

Plot

GetPlotAtPixel(IMultiplot, Pixel)

Return the plot beneath the given pixel according to the last render. Returns null if no render occurred or the pixel is not over a plot.

public static Plot? GetPlotAtPixel(this IMultiplot multiplot, Pixel pixel)

Parameters

multiplot IMultiplot
pixel Pixel

Returns

Plot

GetPlots(IMultiplot)

Return all plots in this multiplot

public static Plot[] GetPlots(this IMultiplot multiplot)

Parameters

multiplot IMultiplot

Returns

Plot[]

RemovePlot(IMultiplot, Plot)

Remove the given plot from the collection of subplots

public static void RemovePlot(this IMultiplot multiplot, Plot plot)

Parameters

multiplot IMultiplot
plot Plot

Render(IMultiplot, SKSurface)

Render the multiplot into the clip boundary of the given surface.

public static void Render(this IMultiplot multiplot, SKSurface surface)

Parameters

multiplot IMultiplot
surface SKSurface

Render(IMultiplot, int, int)

Create a new image, render the multiplot onto it, and return it

public static Image Render(this IMultiplot multiplot, int width, int height)

Parameters

multiplot IMultiplot
width int
height int

Returns

Image

Reset(IMultiplot)

Reset this multiplot so it only contains the first plot

public static void Reset(this IMultiplot multiplot)

Parameters

multiplot IMultiplot

Reset(IMultiplot, Plot)

Reset this multiplot so it only contains the given plot

public static void Reset(this IMultiplot multiplot, Plot plot)

Parameters

multiplot IMultiplot
plot Plot

SavePng(IMultiplot, string, int, int)

Save the multiplot as a PNG image file

public static SavedImageInfo SavePng(this IMultiplot multiplot, string filename, int width = 800, int height = 600)

Parameters

multiplot IMultiplot
filename string
width int
height int

Returns

SavedImageInfo