User Tools

Site Tools


root:functionsetnumberpoints

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

root:functionsetnumberpoints [2010/09/28 11:10] (current)
decianm created
Line 1: Line 1:
 +====== 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 =====
 +<​code>​
 +TF1* func = new TF1("​func","​function",​ 0, 100);
 +func->​SetNpx(myNumberOfPoints);​
 +</​code>​
 +The default for ''​myNumberOfPoints''​ is 100.
  
root/functionsetnumberpoints.txt ยท Last modified: 2010/09/28 11:10 by decianm