Fix ChartXY Axis auto behavior and log scale issue.
Fixes #18417 (closed).
Test plots (before & after)
Data | Range | Behavior | Plot before | Plot after |
---|---|---|---|---|
Pos. | Neg. + Pos. | Fixed | ||
Pos. | Neg. + Pos. | Auto | ||
Pos. | Pos. | Fixed | ||
Pos. | Pos. | Auto | ||
Neg. | Neg. + Pos. | Fixed | ||
Neg. | Neg. + Pos. | Auto | ||
Neg. | Pos. | Fixed | ||
Neg. | Pos. | Auto |
There's some remnants of my initial more ambitious attempt to solve this issue, which moved some functionality to the ChartPrivate
class. I think those methods fit that class quite well (as each of these methods only accesses ChartPrivate
members) so I left it in here, but I can move it back to ChartXY
if you prefer it that way.
Edited by dcbr