#NEWLINE# def pcolorimage( ax , x , y , Z ) : #NEWLINE# #INDENT# "\n    Make a PcolorImage based on Z = (x, z, 4) [byte] array \n\n    This is to fix an omission ('bug') in the current (as of this\n    writing) version of MatPlotLib.  I may become superfluous in the\n    future.\n    " #NEWLINE# img = PcolorImage ( ax , x , y , Z ) #NEWLINE# ax . images . append ( img ) #NEWLINE# ( xl , xr , yb , yt ) = ( x [ 0 ] , x [ ( - 1 ) ] , y [ 0 ] , y [ ( - 1 ) ] ) #NEWLINE# ax . update_datalim ( np . array ( [ [ xl , yb ] , [ xr , yt ] ] ) ) #NEWLINE# ax . autoscale_view ( tight = True )