_ROOT Version: 6.12/06
_Platform: Fedora 27
_Compiler: gcc version 7.3.1
I am trying to accomplish the following task : I have a set of start (X, Y, Z) and end (X', Y', Z') coordinates and I would like to plot on a canvas a straight line from the start to the and point.
Any idea on how to do it?
It has to be mentioned that the there is a big number of point (1e6) therefore I thought it was not convenient to define 1e6 TGraphs and draw them on the same canvas.
Those are TLine objects. They are fairly cheap; you should be able to draw 1E6 of them…
But it’ll probably be better to implement your own graphical object, with its own painter - but that’s much more work, and only worth it if your code is meant to be used by many and / or supposed to survive for many years.
NB, if these lines are all connected then you can use a TPolyLine!