User Tools

Site Tools


root:functionsetnumberpoints

Set the number of points to draw a function

Problem

If you draw a function and zoom in, you see it is composed of straight lines connecting points. You can increase the number of points to solve this.

Do

TF1* func = new TF1("func","function", 0, 100);
func->SetNpx(myNumberOfPoints);

The default for myNumberOfPoints is 100.

root/functionsetnumberpoints.txt · Last modified: 2010/09/28 11:10 by decianm