TF2 Contour plot labels

Hi everyone,

I am trying to reproduce the plot attached in ROOT. For that I am defining my function as

TF2 *f2 = new TF2(“f2”, “myfunc(x,y)”, x0, x1, y0, y1);

The problem is that I don’t know how to add the contour labels next to each line, and I can’t find an easy way to specify the circular domain. I have read that I can use TCutG but it seems too complicated for what I want to do, i.e., just a perfect circular domain. Is there an easier way?

Thank you.

ROOT forum.pdf (24.0 KB)

ROOT Version: 6.12/04

There is no option allowing to draw the labels on the contours. But you can get some ideas with this example:

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