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 Fri Nov 13 2009 - 21:13:16 CET
This archive was generated by hypermail 2.2.0 : Sat Nov 14 2009 - 23:50:02 CET