Thanks, adding the axes ([0,0,1,1]) helped! 
:)
I'll just be careful so that my calculation domain 
is from 0 - 1 in x and y direction, this is something
I have to do anyway. This will definitely work!

Thanks again, 
Tomislav
----- Original Message -----
From: Friedrich Romstedt
Sent: 03/17/10 07:18 PM
To: tomislav_ma...@gmx.com
Subject: Re: [Matplotlib-users] figure: centering data and plot.svg borders

Maybe:

from matplotlib import pyplot as plt

figureOne = plt.figure()
axesOne = figureOne.add_axes([0, 0, 1, 1])
axesOne.plot([-1, 1], [-2, 2])
axesOne.plot([-2, 2], [-1, 1])

axesOne.set_xlim((-3, 3))
axesOne.set_ylim((-3, 3))
figureOne.set_figwidth(2)
figureOne.set_figheight(2)

plt.savefig("Friedrich.png")

Friedrich
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to