Hi Roger,
how about this macro:
void tm()
{
TCanvas * c1 = new TCanvas("c1", "Markers", 100,100, 500, 500);
c1->Range(0, 0, 100, 100);
TMarker *m;
Double_t x, y;
Double_t d2r = TMath::Pi() / 180;
Style_t mstyle = 20;
for (Double_t ang = 0; ang < 360; ang += 30) {
x = 50 + 30 * TMath::Cos(d2r * ang); y = 50 + 30 * TMath::Sin(d2r * ang); m = new TMarker(x, y, mstyle); mstyle++; m->Draw();
Cheers
Otto
Roger Mason wrote:
> Hello,
>
> Is there a programmatic way to place a marker at an arbitrary position
> on a canvas?
>
> I grepped through the tutorials for "Mark" without success.
>
> Thanks,
>
> Roger
>
>
-- Dr. Otto Schaile Department f"ur Physik, LMU M"unchen Phone: +49 89 289 14070 Am Coulombwall 1, D-85748 Garching, Germany Mobil: +49 160 1553598 FAX: +49 89 289 14072 EMail: Otto.Schaile_at_Physik.Uni-Muenchen.DEReceived on Wed Jun 07 2006 - 10:12:28 MEST
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:58 MET