Thank you for your reply Uwe.
I managed to solve it by setting plotLayout()->setAlignCanvasToScales(false); for the vertical twitching.
But I also have the problem of twitching horizontally. Whenever a major tick on the y-axis appear that has a number of characters which is greater than the rest. For example you have a range from 0-2, and when the curve goes down to -1, you have one additional character, "-" and "1".
Example:
Y-axis
---
|2|
---
|1|
---
|0|
----
|-1|
----
Y-axis
---
|2|
---
|1|
---
|0|
----
|-1|
----
To copy to clipboard, switch view to plain text mode
Is there a way to set a fixed size for the label on the major tick? For instance setting it to 7 characters if you know your y-values ranges from -999999 to 9999999.
Example of wanted behaviour:
Y-axis
------
| 2|
------
| 1|
------
| 0|
------
| -1|
------
Y-axis
------
| 2|
------
| 1|
------
| 0|
------
| -1|
------
To copy to clipboard, switch view to plain text mode
Your help is greatly appreciated.
Gerhard
Bookmarks