What i want to do is the following: I have a line chart where i want to add some text information aligned with some lines in this chart. Because this chart is used for very different data (some range from 1 to 5) others from 200 000 to 900 000 i use auto scaling.
To align the text i studied the outcome of the auto scaling and built a function to guess the scaling. Mostly it works fine (more than 90%) but in some cases it goes totally wrong: The main difficulty is guessing how many label points will occur (usually between six and nine, but sometimes only 5 or even 10) and i don't see a pattern behind it. So if a change the algorithm to handle one case, it will destroy another case, so more fine tuning without more information will not work.
Is there a documentation on this? Or even a function to get it?
Thanks