About the different Image format,pdf is dffetent

Please read tips for efficient and successful posting and posting code

The black points are from data. The red points are a fit function. But as we look at pdf, the red points are mixed black. But for png it is not. In fact, I didn’t mix the red and black for fit. How to modify?

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided

What operating system and what viewer are you using for the pdf file?
Some have problems with (vector) “anti-aliasing”, which you need to switch off / disable.

BTW. Looking at the png, I can see black dots in the middle of the red lines. I guess you would need something like this: red_histo->SetMarkerColor(kRed);

A reproducer might be helpful to understand what’s going on.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.