Excluding origin in graph

Hello
I am drawing a graph using TGraph. It is drawing the graph with including the origin but there is no origin on my data set. How can I exclude this point.


Thank you :slight_smile:

Can you post the macro producing this graph ?

If by origin you mean the (0,0) point then, my wild guess is that you enumerate your data points starting from 1 but, the TGraph expects point numbers from 0 and so, the first point is left “uninitialized”, i.e. it will be (0,0).

1 Like

Yes that’s what I thought the mistake is … but I found easier to fix the macro.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.