On Thu, May 16, 2013 at 2:41 PM, blueone <rar...@gm...> wrote:
> Hi,
>
> I am working on my first project involving Matplotlib. I haven't used it
> much, but i'm already impressed by it!
> The project i am working on uses Matplotlib embedded in wxPython. I have
> already embedded it successfully, but there is one thing that i would still
> like to change and that is the gray area around the plot. The background of
> the plot is white and around it there's this thick gray rectangle. Is there
> a way of making it smaller?
>
> Thanks in advance!
>
>
>
You can adjust the margins using subplots_adjust():
http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.subplots_adjust
Cheers!
Ben Root
|