The description of my problem might be a little bit confusing, therefore I will illustrate it with two screenshots.
In the first picture, my application window is very small and the number of major ticks (0,5,10,15) seems well chosen and the available screen space is filled optimal with the ticks.
In the second picture, I resized the very same window to the full width of my screen. My problem is, that the number of ticks and labels is still exactly the same as in the small window. The spacing between the ticks is now very big and does not seem well chosen to me. There is enough space to add more major (and minor) ticks (lets say -2, 0,2,4,6,8 and so on), which would result in a much more adequate looking axis.
window_small.pngwindow_big.jpg
Is there a way to recalculate the number of ticks whenever the window gets resized?
Bookmarks