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

Losing some transparency when saving to PDF

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 6.19/01
    • Fix Version/s: 6.19/01
    • Component/s: Graphics
    • Labels:
      None
    • Environment:

      Linux

      Description

      Issue already reported in the forum. Moving it here to follow it better.

      There seem to be a problem when drawing multiple semitransparent scatterplots on the same canvas and saving them as PDF.

      They look good when rendered with the GL GUI but the first one is somewhat flattened when rendered as PDF. Attaching the problematic code, a screenshot of the desired result and the pdf showing the issue.

      Olivier Couet noticed that the issue might have something to do with the range of the histogram as it comes ang goes seemingly randomly just changing the DrawFrame ranges in the following code

      auto c = new TCanvas("ctest", "", 600, 600);
      // double x2=5; // not ok
      double x2=4; // ok}}{{c->DrawFrame(-5,-4,x2,5);
      ntu->SetMarkerStyle(20);
      ntu->SetMarkerColorAlpha(kBlue, .2111);
      ntu->Draw("c:d","","same");
      c->SaveAs("testalpha.pdf");

        Attachments

        1. testalpha.C
          0.9 kB
        2. testalpha.pdf
          314 kB
        3. testalphagui.png
          testalphagui.png
          120 kB

          Activity

            People

            • Assignee:
              couet Olivier Couet
              Reporter:
              6996aec7d0ef8c1d664c Filippo Argiolas
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual End: