How to fill a surface in TGraph2D?

I produced a 3D graph (which is a surface) using the class TGraph2D. Can anyone tell how to fill this with different texture or colors?

Hi

You can use (for example) Draw("surf1"). And you can find the list of drawing options in the
TGraph2D class documentation

Cheers, Bertrand.

All the specific TGraph2D painting options are listed here:
https://root.cern/doc/master/classTGraph2D.html

Moreover most of the 2D histogram painting option are also working. Listed here:
https://root.cern/doc/master/classTHistPainter.html#HP01c

1 Like

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