Re: [Matplotlib-users] figure: centering data and plot.svg borders

2010-03-18 Thread tomislav_ma...@gmx.com
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], [

Re: [Matplotlib-users] figure: centering data and plot.svg borders

2010-03-17 Thread Friedrich Romstedt
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("Fri

[Matplotlib-users] figure: centering data and plot.svg borders

2010-03-17 Thread tomislav_ma...@gmx.com
Hi everyone, Is there a straightforward way for me to ensure that my data is centered: allways present on the figure? I'm plotting the results from complicated geometrical calculations and I need high dpi so that I can debug the code. I've recorded the session in a log file and I've modified the