I spent last few days trying to find a way to remove tiny margins from axis in a 3D plot. I tried ax.margins(0) and ax.autoscale_view('tight') and other approaches, but these small margins are still there. In particular, I don't like that the bar histograms are elevated, i.e., their bottom is not at the zero level -- see example image. ![unwanted margins on all axis][1] In gnuplot, I would use "set xyplane at 0". In matplotlib, since there are margins on every axis on both sides, it would be great to be able to control each of them. Edit: HYRY's solution below works well, but the 'X' axis gets a grid line drawn over it at Y=0: Continue reading...