@_autogen_docstring(Axes.pcolormesh)
def pcolormesh(_args, *_kwargs):
ax = gca()
# allow callers to override the hold state by passing hold=True|False
washold = ax.ishold()
hold = kwargs.pop('hold', None)
if hold is not None:
ax.hold(hold)
try:
ret = ax.pcolormesh(_args, *_kwargs)
draw_if_interactive()
finally:
ax.hold(washold)
sci(ret)
return ret