Re: [Matplotlib-users] How to remove the white space arround the generated graph?

2006-06-30 Thread Petar Marić
Hi John, > You should then try the svn version of mpl or try the alpha trick I > suggested. You mean like this? # CODE from pylab import * x = range(10) fig = figure(1, facecolor='r') fig.frameon = False fig.figurePatch.set_alpha(0.0) scatter(x, x) savefig('figure.png') # /CODE I've got the sam

Re: [Matplotlib-users] How to remove the white space arround the generated graph?

2006-06-30 Thread John Hunter
> "Petar" == Petar Mari§ <[EMAIL PROTECTED]> writes: Petar> Hi John, Unfortunately, that also didn't do what I wanted. Petar> I tried a different backend today - Cairo, and got the same Petar> results You should then try the svn version of mpl or try the alpha trick I suggested.

Re: [Matplotlib-users] How to remove the white space arround the generated graph?

2006-06-30 Thread John Hunter
> "Petar" == Petar Mari§ <[EMAIL PROTECTED]> writes: Petar> Hi John, >> Does fig = figure(frameon=False) do what you want? Petar> Apperently not: from pylab import * x = range(10) figure(1, frameon=False, facecolor='r') scatter(x, x) show() I found the problem i

Re: [Matplotlib-users] How to remove the white space arround the generated graph?

2006-06-30 Thread Petar Marić
Hi John, Does fig = figure(frameon=False) do what you want? Apperently not: from pylab import * x = range(10) figure(1, frameon=False, facecolor='r') scatter(x, x) show() Produces the picture given in attachment. I just want to get rid of the damn red area :) So my graph will takeup the w

Re: [Matplotlib-users] How to remove the white space arround the generated graph?

2006-06-30 Thread John Hunter
> "Petar" == Petar Mari§ <[EMAIL PROTECTED]> writes: Petar> Hi all, First of all, thank you for this awesome library, Petar> you mad my life heck of a lot easier - no really :) Petar> I'm interested into how to remove the whitespace which is Petar> around the figure? You can r

[Matplotlib-users] How to remove the white space arround the generated graph?

2006-06-30 Thread Petar Marić
Hi all, First of all, thank you for this awesome library, you mad my life heck of a lot easier - no really :) I'm interested into how to remove the whitespace which is around the figure? You can really see it when you export your picture via savefig() Example graph: http://svn.petarmaric.com/pla