Hi,
I tried again your new examples. I zoomed the file prova1.eps using gv. All the graphics is zooming as expected.
Cheers, O.Couet
-----Original Message-----
From: Feverati.Giovanni [mailto:feverati_at_lapp.in2p3.fr]
Sent: Saturday, November 14, 2009 9:43 PM
To: Rene Brun
Cc: Olivier Couet; roottalk_at_root.cern.ch
Subject: Re: [ROOT] problem with Marker size
Hi,
I'm using root 5.24, evince 2.26.1, xpdf 3.02. I have the same problem
in eps or pdf. To better explain you, I have added some text to my
images:
try to visualize the eps or pdf such that the text appears at the same
size and the markers will not!
Giovanni
Here is the new file
using namespace std;
TCanvas *canapa = new TCanvas("prova","prova",0,0,200,100);
canapa->Range(0,0,11,15);
// new point (positionX, positionY, form "X")
TMarker *m1 = new TMarker(1,2,5);
m1->SetMarkerSize(1.); m1->Draw(); TMarker *m1 = new TMarker(1,10,5); m1->SetMarkerSize(1.); m1->Draw(); TMarker *m1 = new TMarker(10,10,5); m1->SetMarkerSize(1.); m1->Draw(); TLine *l1 = new TLine( 1,2,1,10); l1->SetLineWidth(2); l1->Draw(); TText indice(2,5,"a"); indice.SetTextFont(43); indice.SetTextSize(9); indice.DrawText(2,5,"<-- This line must be vertical");
canapa->Print("prova.eps");
canapa->Print("prova.pdf");
TCanvas *canapa1 = new TCanvas("prova1","prova1",0,0,400,100);
canapa1->Range(0,0,11,15);
TMarker *m1 = new TMarker(1,2,5);
m1->SetMarkerSize(1.); m1->Draw(); TMarker *m1 = new TMarker(1,10,5); m1->SetMarkerSize(1.); m1->Draw(); TMarker *m1 = new TMarker(10,10,5); m1->SetMarkerSize(1.); m1->Draw(); TLine *l2 = new TLine( 1,2,1,10); l2->SetLineWidth(2); l2->Draw(); TText indice(2,5,"a"); indice.SetTextFont(43); indice.SetTextSize(9); indice.DrawText(2,5,"<-- This line must be vertical");
canapa1->Print("prova1.eps");
canapa1->Print("prova1.pdf");
On Sat, 14 Nov 2009, Rene Brun wrote:
> As already reported by Olivier, we cannot reproduce your problem.
> Which version of ROOT are you using? which ps, eps viewers?
>
> Rene
>
> Feverati.Giovanni wrote:
>>
>> Hi.
>>
>> If you zoom the eps such that the two images prova.eps and prova1.eps
>> have the same vertical size you should see that the markers have now
two
>> different sizes. But notice: in the root panels you obtain two images
with
>> precisely the same vertical size and the same markers. This is my
problem:
>> I need eps images with the same vertical size and the same size of
the
>> markers;
>> I can get them on the root panel but not after printing to eps.
>>
>> Giovanni Feverati
>>
>>
>>
>> On Fri, 13 Nov 2009, Olivier Couet wrote:
>>
>>> Hi,
>>>
>>> I ran you macros. I do not understand what you mean by:
>>>
>>> "the size of the Marker is adapted to the horizontal length of the
eps
>>> image" ?
>>>
>>> I get the same marker size on screen and in the eps.
>>>
>>> O.Couet
>>>
>>> -----Original Message-----
>>> From: owner-roottalk_at_root.cern.ch
[mailto:owner-roottalk_at_root.cern.ch]
>>> On Behalf Of Feverati.Giovanni
>>> Sent: Friday, November 13, 2009 5:23 PM
>>> To: roottalk_at_root.cern.ch
>>> Subject: [ROOT] problem with Marker size
>>>
>>>
>>> Hi
>>>
>>> I'm using TMarker to produce a symbol like x and I fix its size by
>>> SetMarkerSize(1.); the problem arises when saving with
>>> Print("file.eps"):
>>> the size of the Marker is adapted to the horizontal length of the
eps
>>> image.
>>> This effect is not apparent on the screen, it appears after
printing.
>>> Can I have a fixed size, on both the screen and the eps?
>>> Giovanni
>>>
>>>
>>> The code is the following.
>>>
>>>
>>>
>>> using namespace std;
>>> TCanvas *canapa = new TCanvas("prova","prova",0,0,200,100);
>>> canapa->Range(0,0,11,15);
>>> TMarker *m1 = new TMarker(1,1,5);
>>> m1->SetMarkerSize(1.);
>>> m1->Draw();
>>> TMarker *m1 = new TMarker(1,10,5);
>>> m1->SetMarkerSize(1.);
>>> m1->Draw();
>>> TMarker *m1 = new TMarker(10,10,5);
>>> m1->SetMarkerSize(1.);
>>> m1->Draw();
>>> canapa->Print("prova.eps");
>>>
>>>
>>> TCanvas *canapa1 = new TCanvas("prova1","prova1",0,0,400,100);
>>> canapa1->Range(0,0,11,15);
>>> TMarker *m1 = new TMarker(1,1,5);
>>> m1->SetMarkerSize(1.);
>>> m1->Draw();
>>> TMarker *m1 = new TMarker(1,10,5);
>>> m1->SetMarkerSize(1.);
>>> m1->Draw();
>>> TMarker *m1 = new TMarker(10,10,5);
>>> m1->SetMarkerSize(1.);
>>> m1->Draw();
>>> canapa1->Print("prova1.eps");
>>>
>>>
>>>
>>
>
>
Received on Mon Nov 16 2009 - 09:43:56 CET
This archive was generated by hypermail 2.2.0 : Tue Nov 17 2009 - 23:50:02 CET