# TF1 drawing issue in ROOT versions \> 6.28.10

**URL:** <https://root-forum.cern.ch/t/tf1-drawing-issue-in-root-versions-6-28-10/64983>\
**Category:** ROOT\
**Created:** [August 28, 2026, 11:56pm UTC](https://root-forum.cern.ch/t/tf1-drawing-issue-in-root-versions-6-28-10/64983 "2026-08-28T23:56:51Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [August 29, 2026, 4:06am UTC](https://root-forum.cern.ch/t/tf1-drawing-issue-in-root-versions-6-28-10/64983/3 "2026-08-29T04:06:59Z")

</div>

Increase the number of points in x where the TF1 are drawn, e.g. to 500 (`f1->SetNpx(500); etc`), so that there are enough points in the small range you are plotting them.

> **[ROOT: TF1 Class Reference](https://root.cern/doc/master/classTF1.html#a6a04facaa58306988a3189b4e8713aa5)**
>
> 1-Dim function class

> [@Two plotting aesthetics questions (TGraph and TAxis)](https://root-forum.cern.ch/t/two-plotting-aesthetics-questions-tgraph-and-taxis/61900/5):
>
> For the function line issue, it’s because your functions are defined from 9.5 (or 10.5 as you would like) to 200 (even though you are only plotting up to 37), and by default ROOT draws TF1 by sampling 100 points in x, so there aren’t enough points; you can change that number with TF1::SetNpx: [https://root.cern/doc/master/classTF1.html#a6a04facaa58306988a3189b4e8713aa5](https://root.cern/doc/master/classTF1.html#a6a04facaa58306988a3189b4e8713aa5) For your case, you could increase that npx (around 500 seems to look ok), or reduce the upper limit of your functions (e.g. to …

---

_[View the full topic](https://root-forum.cern.ch/t/tf1-drawing-issue-in-root-versions-6-28-10/64983)._
