NPlot Documented Class Library

PlotSurface2D Members

PlotSurface2D overview

Public Static Methods

Equals (inherited from Object)Determines whether the specified Object instances are considered equal.
ReferenceEquals (inherited from Object)Determines whether the specified Object instances are the same instance.

Public Instance Constructors

PlotSurface2D Overloaded. Initializes a new instance of the PlotSurface2D class.

Public Instance Properties

AutoScaleAutoGeneratedAxes When plots are added to the plot surface, the axes they are attached to are immediately modified to reflect data of the plot. If AutoScaleAutoGeneratedAxes is true when a plot is added, the axes will be turned in to auto scaling ones if they are not already [tick marks, tick text and label size scaled to size of plot surface]. If false, axes will not be autoscaling.
AutoScaleTitle Whether or not the title will be scaled according to size of the plot surface.
BackColor The bitmap background color outside the bounds of the plot surface.
Bitmap The bitmap to use as the drawing surface.
Drawables Gets an array list containing all drawables currently added to the PlotSurface2D.
Height The bitmap height
Legend Gets or Sets the legend to use with this plot surface.
LegendZOrder Gets or Sets the legend z-order.
Padding The distance in pixels to leave between of the edge of the bounding rectangle supplied to the Draw method, and the markings that make up the plot.
PlotBackBrush A Rectangle brush used to paint the plot background. Mutually exclusive with PlotBackColor and PlotBackBrush
PlotBackColor A color used to paint the plot background. Mutually exclusive with PlotBackImage and PlotBackBrush
PlotBackImage An imaged used to paint the plot background. Mutually exclusive with PlotBackColor and PlotBackBrush
SmoothingMode Smoothing mode to use when drawing plots.
Title The plot surface title.
TitleBrush The brush used for drawing the title.
TitleColor Sets the title to be drawn using a solid brush of this color.
TitleFont The plot title font.
Width The bitmap width
XAxis1 The bottom abscissa axis.
XAxis2 The top abscissa axis.
YAxis1 The left ordinate axis.
YAxis2 The right ordinate axis.

Public Instance Methods

AddOverloaded. Adds a drawable object to the plot surface. If the object is an IPlot, the PlotSurface2D axes will also be updated.
AddAxesConstraint Add an axis constraint to the plot surface. Axis constraints can specify relative world-pixel scalings, absolute axis positions etc.
Clear Clears the plot.
Draw Renders the plot.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
Refresh Refreshes (draws) the plot.
Remove Remove a drawable object from the plot surface.
ToStream Renders the bitmap to a MemoryStream. Useful for returning the bitmap from an ASP.NET page.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

PlotSurface2D Class | NPlot.Bitmap Namespace