Page 1 of 1

Axis labeling when many axes are stacked

Posted: Mon Jan 09, 2017 10:27 am
by Igor
Hi,

the Y-Axis labeling is limited, when to many axes are stacked on top of each other in ViewXY.

#Ok when enough space.
2017-01-09_1116.png
2017-01-09_1116.png (6.26 KiB) Viewed 4770 times
#max value label disapear when add an extra axis.
So it is no longer possible to estimate how high the value is.
2017-01-09_1116_001.png
2017-01-09_1116_001.png (10.48 KiB) Viewed 4770 times
Is it possible to force to show allways minimum 2 axis labels, so that the user can always estimate the value of the curve.

thank you very much

Re: Axis labeling when many axes are stacked

Posted: Wed Jan 11, 2017 7:43 am
by ArctionKestutis
Hi Igor,

You could check if number of major ticks <2 with

Code: Select all

Axes.GetMajorTicks()
And in that case you could add Custom Ticks:

Code: Select all

Axis.CustomTicksEnable=True;
Axis.CustomTicks.Add(new CustomAxisTick(Axis, Minimum, Minimum.ToString(), 5, true, Color.White, CustomTickStyle.Tick));
Axis.CustomTicks.Add(new CustomAxisTick(Axis, Maximum, Maximum.ToString(), 5, true, Color.White, CustomTickStyle.Tick));
All the best,
Kestutis