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_maric@…2537…
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