"curveLegendNamePlotAlignment"
This attribute defines the position of the name label for an event curve.
Synopsis
setValue(string shape, "curveLegendNamePlotAlignment", string curve, string
alignment);
shape.curveLegendNamePlotAlignment (string curve, string
alignment);
Parameters
Parameter | Description |
---|---|
shape | Name of the object |
curve | Name of the event curve |
alignment |
The alignment for the name label The value for the alignment is any of the alignments used in the Layout management |
Description
This attribute sets the alignment within the plot area of the name label for an event curve. It is not possible to use this property for a curve that is not an event curve.
By default the text is not displayed. The same is the case when the alignment is set to "AlignNone".
The alignment is relative to the rectangular area normally used by the event curve in the total plot area. E.g. on a horizontal trend it spans from left to right and the top/bottom is defined by the min/max values of the curve (in % of the plot height). If the label is displayed at top or bottom of the event curve, the event curve itself will be less high.
For a vertical trend, the text will be displayed rotated by 90 degrees. The same will be done for the alignments themselves, so AlignTop is to the right of the curve, AlignBottom to the left, AlignLeft is the top and AlignRight is the bottom of the plot.
Example
This example sets the label of the curve "curve1" in the "TREND1" to align in the center.
main()
{
TREND1.curveLegendNamePlotAlignment("curve1","AlignVCenter|AlignHCenter");
}
Assignment
Trend