How to set line's resolution

When we plot a function, we can set resolution by SetNpx(1000), I am wondering if there is a similar function in the class TLine?


When you call TF1::SetNpx(1000) you force the function to be computed at 1000 points and drawn with 1000 lines. This does not make any sense for a TLine that is always drawn with the maximum possible resolution of your device.


Oh, I see. Thanks for your reply.

I think the bad resolution is from my device, for example, my viewer. For example, I use ‘xdvi’ and ‘gv’ to view the graph, it looks harsh. If I convert it to pdf, and use ‘acroread’ to view it, it looks so nice. I guess somehow I have to change resolutions of those devices.