chart-fx icon indicating copy to clipboard operation
chart-fx copied to clipboard

Zoom plugin does not appear to correctly scale the y-axis for contour datasets

Open ajackson2681 opened this issue 3 years ago • 2 comments

Describe the bug I noticed while I was implementing my own project, that when I add the zoomer plugin to an XYPlot, that zooming in does not correctly scale the data for a contour dataset. This is easily reproducible by just running the Histogram2DimSample included in this repository. As you can see in the gif attached, when the chart zooms in, the dataset in the y direction appears to compress, even though the range on they y-axis is getting smaller. The x-axis does not appear to have this problem.

Environment:

  • OS: Pop!_OS 21.10
  • Java version: 11.0.14
  • JavaFx version: 13
  • ChartFx version: 11.2.6

hist2d

ajackson2681 avatar Apr 14 '22 17:04 ajackson2681

Most of this seems to be fixed by #519, but if you use the sample for some time, there are over-range warnings, the y projection vanishes and similar zooming issues can be observed. There seems to be some problem with the way the axes are setup in the sample.

wirew0rm avatar Jul 04 '22 15:07 wirew0rm

The issue with the y-projection in the sample was caused by Histogram::reset calling its super method and therefore clearing both the x and y axis description loosing the information about the bin boundaries.

wirew0rm avatar Jul 12 '22 13:07 wirew0rm

fixed in #534

wirew0rm avatar Aug 09 '23 09:08 wirew0rm