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

SVG rendered produces non compilant svg code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.04/12
    • Fix Version/s: 6.08/00
    • Component/s: Graphics
    • Labels:
      None
    • Environment:

      6.04.12-x86_64-slc6-gcc49-opt
      Set up with ATLAS software on cvmfs

      Description

      When saving a TGraphAsymmErrors with negative value to svg it produces a box in svg with negative width. In the svg definition it specifies boxes with negative width should not be drawn so these do not show up. When saved as pdf the expected output is seen.

      Fix would be to shift the x value of the box in the svg file and have a positive width to be compliant with modern svg renders. Note the box is incorrectly drawn in ImageMagick so the fix should not be tested viewing with this program, instead a modern browser can be used as these correctly render the svg.

      Example code to produce the issue attached, running with root test.C saves the svg and pdf files to see it working correctly in the pdf and failing in the svg.

        Attachments

          Activity

            People

            • Assignee:
              couet Olivier Couet
              Reporter:
              bsowden Benjamin Charles Sowden (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual End: