Dear all,
I’ve been trying to highlight the minimum in a TH2D using a marker. The code right now looks something like this:
TH2D* h1 = NULL;//Then read from a file
TCanvas *c1 = new TCanvas("c1","",200,10,800,600);
h1->Draw("col z");
TMarker *marker = new TMarker(-6,0,29);
// marker->SetMarkerColor(2);
// marker->SetMarkerSize(20);
marker->Draw("");
The problem is that I cannot see the marker. I’ve tried playing with the size of the marker, the type, and the position. The coordinates I took from this post, as the problem looked very similar to what I want to do. But maybe I’m placing it outside of the canvas? I don’t really understand the coordinate system and I have some trouble finding documentation on it. Maybe someone has an idea what’s going wrong?
Both axes range from 1 to 2. I can’t share the original plot here, since it contains results from an ongoing analysis, so I broke the script down to a minimal example that can reproduce the problem: macro.C (1.7 KB)
Indeed, it shouldn’t work, I didn’t test or check the code of PaintMarkerNDC. I edited my post to remove that and clarify what the actual solution was.