How to draw a TGraph2D for TF2

Dear experts,

I’m a newbie here, I want to draw a TF2 function with TGraph2D (or any 3D graph), is there anyway to draw directly instead of adding points to the graph like AddPoint(x, y, func->Eval(x,y))?

Thank you in advance

Please read tips for efficient and successful posting and posting code

ROOT Version: 6.26.02
Platform: MacOS
Compiler: g++

Yes, if you know the analytic formula of the function just follow the TF2 doc.

Thank you count, actually I read the TF2 doc. before asking the question but didn’t get the answer… can you tell me more specifically about the method or where it is written?

here for instance

I found it, thank you so much!

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