Skip to content

Fix ChartXY Axis auto behavior and log scale issue.

dcbr requested to merge dcbr/vtk:chart_log_scale_fix into master

Fixes #18417 (closed).

Test plots (before & after)
Data Range Behavior Plot before Plot after
Pos. Neg. + Pos. Fixed Dpos_Rneg_Bfixed_before Dpos_Rneg_Bfixed_after
Pos. Neg. + Pos. Auto Dpos_Rneg_Bauto_before Dpos_Rneg_Bauto_after
Pos. Pos. Fixed Dpos_Rpos_Bfixed_before Dpos_Rpos_Bfixed_after
Pos. Pos. Auto Dpos_Rpos_Bauto_before Dpos_Rpos_Bauto_after
Neg. Neg. + Pos. Fixed Dneg_Rneg_Bfixed_before Dneg_Rneg_Bfixed_after
Neg. Neg. + Pos. Auto Dneg_Rneg_Bauto_before Dneg_Rneg_Bauto_after
Neg. Pos. Fixed Dneg_Rpos_Bfixed_before Dneg_Rpos_Bfixed_after
Neg. Pos. Auto Dneg_Rpos_Bauto_before Dneg_Rpos_Bauto_after

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

Merge request reports