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

Different behaviour in JavaFX/Swing node

Open SteffenHeu opened this issue 4 years ago • 0 comments

Hey,

we noticed different behaviour of a chart placed in a swing or java fx node on at least two occasions:

  1. A dataset of the same type increased its bar width on zoom in. Manually overriding the getX etc. method fixed that. See the changes in this this commit. https://github.com/mzmine/mzmine3/pull/62/commits/40f303404ea6e21ac1c5710140582110732fa2bf grafik Left is Swing, right is JavaFX. (without the fix)

  2. In the same screenshot, you can see the left plot has a joined domain axis, whereas the left one does not. Both plots are an instance of CombinedDomainXYPlot. The gap is set to 0 on creation of both of those charts. In Swing it works, in java fx it does not. For some reason though, if the plot is cloned, moved to a new window and then a theme is applied, the axis join.

I hope this is enough information, if you need to know more please let me know.

Best regards Steffen

SteffenHeu avatar Apr 22 '20 06:04 SteffenHeu