Reference > SharpPlot Class > SharpPlot Constructors

SharpPlot Constructors

Initialize a new instance of the SharpPlot class with default paper size (432 pts wide by 324 points high):

public SharpPlot();

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.

public SharpPlot(
  int width,
  int height
);

Example

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.

See also ...

Reset Method | SetBackground Method


Send comments on this topic
© Dyalog Ltd 2013