Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10952

Vertical grid lines in ratioplot4.C not at specified positions

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Medium
    • Resolution: Unresolved
    • 6.08/06, master, 6.10/08, 6.12/06, 6.16/00, 6.14/08, 6.18/04, 6.22/00, 6.20/06
    • None
    • Graphics
    • None
    • Debian Unstable with ROOT 6.22 compiled from git for the interactive test

      Whatever is used to generate the official documentation for the reference plot in the tutorial

    Description

      In the bottom panel as created by the ratio plot tutorial `tutorials/hist/ratioplot4.C` vertical grid lines are set by

      auto rp1 = new TRatioPlot(h1);
      std::vector<double> lines = {-3, -2, -1, 0, 1, 2, 3};
      rp1->SetGridlines(lines);
      

      The lines at -3, -2, -1, 1 and three are displayed correctly but the lines at 0 and 2 (and the border line at 4) are slightly offset to lower values in the reference plot at https://root.cern/doc/master/pict1_ratioplot4.C.png If running the macro and by hand and resizing the lower panel in the interactive display, some of the vertical grid lines are also displayed at wrong (i.e. lower value) positions, although it are not necessarily the same ones as in the reference rendering in the documentation.

      Attachments

        Activity

          People

            couet Olivier Couet
            wollrath Julian Wollrath
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: