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 - 17:54:31 CET
This archive was generated by hypermail 2.2.0 : Fri Nov 13 2009 - 23:50:02 CET