def add2DArray(self, data, position=<NUM_LIT>, xlabel=None, ylabel=None, cmap=None,<EOL>aspect="<STR_LIT>", interpolation="<STR_LIT>", name=None):
if cmap is None:<EOL><INDENT>cmap = cm.Greys<EOL><DEDENT>ax = self._addBase(position, xlabel=xlabel, ylabel=ylabel)<EOL>ax.imshow(data, cmap=cmap, aspect=aspect, interpolation=interpolation)<EOL>if self._show:<EOL><INDENT>plt.draw()<EOL><DEDENT>if name is not None:<EOL><INDENT>if not os.path.exists("<STR_LIT>"):<EOL><INDENT>os.mkdir("<STR_LIT>")<EOL><DEDENT>plt.savefig("<STR_LIT>".format(name=name), bbox_inches="<STR_LIT>",<EOL>figsize=(<NUM_LIT:8>, <NUM_LIT:6>), dpi=<NUM_LIT>)<EOL><DEDENT>
Adds an image to the plot's figure.

        @param data a 2D array. See matplotlib.Axes.imshow documentation.
        @param position A 3-digit number. The first two digits define a 2D grid
                where subplots may be added. The final digit specifies the nth grid
                location for the added subplot
        @param xlabel text to be displayed on the x-axis
        @param ylabel text to be displayed on the y-axis
        @param cmap color map used in the rendering
        @param aspect how aspect ratio is handled during resize
        @param interpolation interpolation method