Hello The primitives in question work use the different coordinate systems. > l = new TLine(0,0,1,1); // 45 DEG The means you want to draw the line from the low left corner to the upper right corner of the current TPad. Your TLine is to draw the TPAd diagonal always even though the area is not perfect square. ---- Best regards Valeri > -----Original Message----- > From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch] On > Behalf Of Musinsky J. > Sent: Friday, August 06, 2004 5:48 AM > To: roottalk@pcroot.cern.ch > Subject: [ROOT] TText Angle > > Hi rooters, > plese help me with this simple problem: > > { > t = new TText(0.5,0.5,"-0-1-2-3-4-5-6-7-8-9-"); > t->SetTextAlign(22); // middle, middle > t->SetTextAngle(45); > t->Draw(); > l = new TLine(0,0,1,1); // 45 DEG > l->Draw(); > } > > why t(text) and l(line) are not parallel ? (in to same NDC system) > > Thanks, Jan
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET