I have a TProfile2D object that I plot with the option:
h->Draw(“cont1z”).
Palette on the pad right explains the colors used in the plot itself, but I would like color corresponding values plotted close by each isocurve, on the graph itself.
I am not completly sure what you mean by " close" . Do you want to move the Palette on the right closer to the plot ? you can do that interactively, then you can save the canvas in a .C file to see how it can be done direclty with C++ coding.