Hi,
I have a Intensity Graph, with a X/Y ranges of 2047/2047. I have a logic where i draw a rectangle on the graph.
Once I draw the rectangle on the graph, i add a IntensityRangeAnnotation to display a label on the graph. For eg: When I draw 3 rectangles, I name them as Subarray_1, Subarray_2, Subarray_3.
The issue i am facing here is when i draw a rectangle at the edges of the graph, the annotation is getting cut off and the label is not getting displayed properly. I am attaching the image of this. If you see Subarray_1, Subarray_2 are displayed properly and Subarray_3, Subarray_4, Subarray_5 rectangles annotation labels are getting cut off. Is there any way i can get the annotation to point downwards, as below?
But I can’t get the annotation to point downwards like:
\
\
\
V
Subarray_4
Below is the code, which i have been trying without success.
if (endY > 1800)
{
intensityRangeAnnotation.ArrowHeadAlignment = BoundsAlignment.TopLeft;
intensityRangeAnnotation.ArrowTailAlignment = BoundsAlignment.TopLeft;
Size size = new System.Drawing.Size(5,5);
intensityRangeAnnotation.ArrowTailSize = size;
}
if (endX > 1800)
{
intensityRangeAnnotation.ArrowHeadAlignment = BoundsAlignment.TopLeft;
intensityRangeAnnotation.ArrowTailAlignment = BoundsAlignment.TopLeft;
}
intensityGraph1.Annotations.Add(intensityRangeAnnotation);
}