Ellipse GetAxisLimits returns incorrect values when the ellipse is rotate, and when x and y axis are not similarly scaled
Author: DaveMartelCreated Jul 27, 2026Updated Jul 27, 2026
Issue: When calling GetAxisLimits() for an Ellipse plottable, if the axis limits are scaled quite differently (e.g. 0 to 50 for x, and 0 to 500) and the Ellipse is rotated, then the values returned are wrong. It uses the angle and the x size to simply calculate the Y extent. This is not correct as the pixels per unit for X and for Y are very different.
This gets particularly bad if you are using a log axis (with data plotted using Log10(). The ellipse is rendered correctly as the canvas is simply rotated before rendering, but the GetAxisLimits() make assumptions that are not valid.
ScottPlot Version: 5.1.59 ScottPlot.WinForms
Code Sample: Not easy to do, since this is somewhat interactive
Source: ScottPlot/ScottPlot