C# Класс NPlot.AxesConstraint.AspectRatio

Defines an axes constraint that forces the world width and height pixel lengths to be at the provided ratio. For example, an aspect ratio of 3:2 or 1.5 indicates that there should be 1.5 times as many pixels per fixed world length along the x direction than for the same world length along the y direction. In other words, the world length of one pixel along the x direction is 2/3rds that of the world length of one pixel height in the y direction.
This class will never increase the size of the plot bounding box. It will always be made smaller.
Наследование: AxesConstraint
Показать файл Открыть проект

Открытые методы

Метод Описание
ApplyConstraint ( PhysicalAxis pXAxis1, PhysicalAxis pYAxis1, PhysicalAxis pXAxis2, PhysicalAxis pYAxis2 ) : void

Applies the constraint to the axes.

AspectRatio ( double a ) : System

Constructor.

AspectRatio ( double a, PlotSurface2D holdFixedX ) : System

Constructor

AspectRatio ( double a, PlotSurface2D holdFixedX, PlotSurface2D holdFixedY ) : System

Constructor

Описание методов

ApplyConstraint() публичный Метод

Applies the constraint to the axes.
public ApplyConstraint ( PhysicalAxis pXAxis1, PhysicalAxis pYAxis1, PhysicalAxis pXAxis2, PhysicalAxis pYAxis2 ) : void
pXAxis1 PhysicalAxis The bottom x-axis.
pYAxis1 PhysicalAxis The left y-axis.
pXAxis2 PhysicalAxis The top x-axis.
pYAxis2 PhysicalAxis The right y-axis.
Результат void

AspectRatio() публичный Метод

Constructor.
public AspectRatio ( double a ) : System
a double Aspect Ratio
Результат System

AspectRatio() публичный Метод

Constructor
public AspectRatio ( double a, PlotSurface2D holdFixedX ) : System
a double Aspect Ratio
holdFixedX PlotSurface2D /// When adjusting the position of axes, the specified axis will never /// be moved. ///
Результат System

AspectRatio() публичный Метод

Constructor
public AspectRatio ( double a, PlotSurface2D holdFixedX, PlotSurface2D holdFixedY ) : System
a double Aspect Ratio
holdFixedX PlotSurface2D When adjusting the position of axes, the specified axis will never be moved.
holdFixedY PlotSurface2D When adjusting the position of axes, the specified axis will never be moved.
Результат System