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
AddPlot(IMultiplot, Plot)
Add the given plot to the collection of subplots
public static void AddPlot(this IMultiplot multiplot, Plot plot)
Parameters
multiplot
IMultiplotplot
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
IMultiplottotal
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
GetPlot(IMultiplot, int)
Return the plot at the given index
public static Plot GetPlot(this IMultiplot multiplot, int index)
Parameters
multiplot
IMultiplotindex
int
Returns
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
IMultiplotpixel
Pixel
Returns
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
IMultiplotplot
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
IMultiplotsurface
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
IMultiplotwidth
intheight
int
Returns
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
IMultiplotplot
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
IMultiplotfilename
stringwidth
intheight
int