How do I take off the gray border padding from a figure ?


Thanks for you last reply John you where right on.

Yet another newbie question, how do I take off the frame off ?

I have tried frameon=False, and played with the figsize and dpi, and I just can't get rid of the gray (or white) border around my image. I want the image to expand to take on the whole sizer I can't afford the padding on the side.

This is how I am adding my image to the figure:
        (I don't know if I should be using add_subplot(111) ? )

        figure = Figure()
        self.axes = figure.add_subplot(111)
        self.axes.imshow(self.image, interpolation='nearest')