Hi @phm5024,
I think TH2Poly is what you want.
In the script below I created a 2D histogram with the axis you said. I also added a 3rd x bin with y edges [0,3].
Then I filled each bin with a different weight. The result I obtain is shown in the attached picture.
Among the different drawing option I tried only "colz"
seems reliable, "surf"
or "lego"
do not work.
Best
{
TH2Poly *hp = new TH2Poly();
hp->AddBin(0,0,1,1);
hp->AddBin(0,1,1,2);
hp->AddBin(0,2,1,3);
hp->AddBin(1,0,3,0.5);
hp->AddBin(1,0.5,3,1.5);
hp->AddBin(1,1.5,3,3);
hp->AddBin(3,0,6,3);
hp->Fill(0.5,0.5,10);
hp->Fill(0.5,1.5,20);
hp->Fill(0.5,2.5,30);
hp->Fill(2.,0.25,40);
hp->Fill(2.,1,50);
hp->Fill(2.,2.5,60);
hp->Fill(5.,2.5,70);
hp->Draw("colz");
}