plot->enableAxis(..., false); ( The color bar is part of the axis widget ).
You can disable the axes before printing and re-enable them if you want to hide them for printing only.
Thanks, that did work. However, it leaves a border of three or so pixels around the image. I tried with setMargin(0) and setCanvasLineWidth(0) but that did not help. If it is always three pixels, I could live with it, though. Any suggestions?
Bookmarks