In matlab/octave I can set axis equal to get a correct aspect ratio. Matplotlib has axis('equal'). How can I achieve this in with QtCharts?
Here is some example code written for octave/matlab together with the result, showing what I am trying to achieve:
x=linspace(0, 10);
plot(x, log(x));
ylim([-3 3]);
xlim([0 10]);
I have now set the axes ranges to suite the plot.
After that I do
axis equal
It has now computed a suitable range for both x and y, but the aspect ratio is wrong. You can see that it is slightly stretched in the vertical direction, by looking at the tangent at x = 1, which should form a 45 degree angle relative to the x axis since d/dx (ln(x)) evaluated at x = 1 equals 1. Doing the following adjusts the size of the plot
Notice that the range of the axes did not change. Instead, the view window is updated with the constraint that a 45 degree line in the plot is drawn as a 45 degree line on the screen. To summarize: the axes range is a hard constraint, that the view window needs to adapt to.

