RE: anti-aliased plots

From: Timur Pocheptsov <Timur.Pocheptsov_at_cern.ch>
Date: Tue, 6 Mar 2012 09:28:35 +0000

You have to execute this command _before_ your macro (or just add it at the beginning of your macro). With OpenGL lines are anti-aliased by default.

________________________________________
From: owner-roottalk_at_root.cern.ch [owner-roottalk_at_root.cern.ch] on behalf of Olivier Couet [Olivier.Couet_at_cern.ch]
Sent: 06 March 2012 10:24
To: Anton Korneev
Cc: roottalk (Mailing list discussing all aspects of the ROOT system.)
Subject: Re: [ROOT] anti-aliased plots

In fact we already have it thanks to OpenGL. Just do:

gStyle->SetCanvasPreferGL(true);

Cheers,
Olivier

On Mar 6, 2012, at 10:11 AM, Olivier Couet wrote:

> It will be possible with the new TGQuartz and TGCocoa classes (native graphics on Mac)
> we are working on now.
>
> On Mar 6, 2012, at 1:31 AM, Anton Korneev wrote:
>
>> Dear rooters,
>> is it possible to produce anti-aliased png plots with ROOT (without any external tools)?
>>
>> Please, see attached:
>>
>> pic.png - this is what I have from ROOT currently
>> pic-a.png - this is what I want to get directly from ROOT
>>
>> File pic.png was produced by attached macro pic.cxx:
>>
>> $ root -b -q -l pic.cxx
>>
>> And pic-a.png by convert utility:
>>
>> $ convert -density 88 pic.eps pic-a.png
>>
>> Thank you,
>> Anton
>> <pic.cxx><pic.png><pic-a.png>
>


Received on Tue Mar 06 2012 - 10:28:41 CET

This archive was generated by hypermail 2.2.0 : Tue Mar 06 2012 - 11:50:01 CET