Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8163486

NumberAxis: inaccurate rendering of ticks when tick unit is low

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u20, 9
    • Fix Version/s: 9
    • Component/s: javafx

      Backports

        Description

        Just a minor renderung issue.

        JDK9 b129 + Windows 7, 10

        Please run the attached test code. The ticks (y-axis) may look a bit irregular, especially when resizing the window (see the screenshot attached - "ticks_nok.png").

        Please see also a notable gap before 100 for x-axis.

        When setting some greater tick unit value (e.g., 10) the ticks look as expected

          Attachments

          1. 1-base.png
            1-base.png
            46 kB
          2. 2-bad.png
            2-bad.png
            31 kB
          3. 3-good.png
            3-good.png
            35 kB
          4. HiDPI.png
            HiDPI.png
            25 kB
          5. HiDPI-2.png
            HiDPI-2.png
            51 kB
          6. ScatterChartTest.java
            2 kB
          7. test.png
            test.png
            16 kB
          8. test-expected.png
            test-expected.png
            11 kB
          9. ticks_nok_2.png
            ticks_nok_2.png
            8 kB
          10. ticks_nok.png
            ticks_nok.png
            28 kB

            Issue Links

              Activity

                People

                • Assignee:
                  vadim Vadim Pakhnushev
                  Reporter:
                  avstepan Alexander Stepanov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: