SharpPlot Reference > SharpPlot Class > SharpPlot Constructor SharpPlot Constructor
Initialize a new instance of the SharpPlot class with default paper size (432 pts wide by 324 points high):
public SharpPlot();
Overloads
Examples
Constructor for SharpPlot taking paper size (width,height in pts) which determines the SVG viewbox, the size of an image rendered at default dpi, and so on.
sp = new SharpPlot(600,300);
This will also set the default chart frame to (0,300,600,300) to occupy all the available area. Call NewFrame to create a chart frame anywhere within the defined area of the paper.
Paper size can be specified as double[] {width,height} as produced by the PaperSize structure.
sp = new SharpPlot(PaperSize.Landscape(PaperSize.A5)));
Uses a Landscape A5 paper.
See also ...SharpPlot.Reset Method | SharpPlot.SetBackground Method
Send comments on this topic © Dyalog Ltd 2021
|