Inheritance diagram for NPlot::AxesConstraint::AspectRatio:
Public Member Functions | |
AspectRatio (double a) | |
Constructor. | |
AspectRatio (double a, PlotSurface2D.XAxisPosition holdFixedX) | |
Constructor. | |
AspectRatio (double a, PlotSurface2D.YAxisPosition holdFixedY) | |
Constructor. | |
AspectRatio (double a, PlotSurface2D.XAxisPosition holdFixedX, PlotSurface2D.YAxisPosition holdFixedY) | |
Constructor. | |
override void | ApplyConstraint (PhysicalAxis pXAxis1, PhysicalAxis pYAxis1, PhysicalAxis pXAxis2, PhysicalAxis pYAxis2) |
Applies the constraint to the axes. | |
Private Attributes | |
double | a_ |
object | holdFixedX_ = null |
object | holdFixedY_ = null |
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.
Definition at line 342 of file AxesConstraint.cs.
|
Constructor.
Definition at line 352 of file AxesConstraint.cs. |
|
Constructor.
Definition at line 365 of file AxesConstraint.cs. |
|
Constructor.
Definition at line 379 of file AxesConstraint.cs. |
|
Constructor.
Definition at line 391 of file AxesConstraint.cs. |
|
Applies the constraint to the axes.
Implements NPlot::AxesConstraint. Definition at line 408 of file AxesConstraint.cs. References a_, NPlot::PhysicalAxis::Axis, holdFixedX_, holdFixedY_, NPlot::PhysicalAxis::PhysicalMax, NPlot::PhysicalAxis::PhysicalMin, NPlot::Axis::WorldMax, and NPlot::Axis::WorldMin. |
|
Definition at line 344 of file AxesConstraint.cs. Referenced by ApplyConstraint(). |
|
Definition at line 345 of file AxesConstraint.cs. Referenced by ApplyConstraint(). |
|
Definition at line 346 of file AxesConstraint.cs. Referenced by ApplyConstraint(). |