Scatter Plot

Scott Sampson (scott@znev03.desy.de)
Thu, 19 Nov 1998 19:30:55 +0100 (MET)


Hi,

I want to superimpose a scatter plot on a frame and then draw a function
on top, so I do the following:

gPad->SetLogy();
gPad->SetLogx();

gPad->DrawFrame(0.01,400,1.0,90000);
gPad->Update();
h2da->Draw("Q2jbc:xjbc>>histo","Q2jbc>400 && yjbc<0.95","SAME");
gPad->Update();

TF1 *fun1 = new TF1("fun1","(300*300*x)",0.001,1);
fun1->SetLineWidth(2);
fun1->SetLineStyle(2);
fun1->DrawCopy("SAME");
gPad->Update();

There are a few things I would like to change:

1) change the marker size and style
2) add labels to the x and y axes
3) superimpose another scatter plot on top with a different marker style

How can I do these easily? I've tried a number of approaches, but none
have worked fully. Thanks,

Scott