Flat colored drawing of TGraph2D

I see in [url]TGraph2D and marker color % z value that one can draw a TGraph2D using the pcol option, allowing you to draw marker colors by the z-axis. However, I’d like to draw the results in 2D, not 3D. In that thread it’s suggested to just rotate the canvas, but this has some disadvantages (the axis labels don’t show up, and it’s not possible to drag along the axes to zoom). Is it possible to add a “pcol2d” draw option that projects along the z-axis, using only the colors to draw the height? Thanks!

The THistPainter has a draw option called “COLZ”.
I think this is what you are looking for.
If you call the Draw() of the TGraph2D with “COLZ” as the option. I believe it should work.

Well, COLZ does show a 2d plot, but it turns my graph into a histogram (coloring bins by occupancy instead of the points by my specified z-height). So that’s not quite what I’m looking for.

Use PCOL and do: