Re: [Matplotlib-users] controllin the background of a plot

2011-07-25 Thread robert rottermann
thanks ben, (sorry for sending answer twice) When you call savefig(), you can pass it the kwarg option of bbox_inches='tight' and that should help get rid of any extra area you may have. Ben Root I tried to follow your advice. however it did not help. This is what I do: - get the current

Re: [Matplotlib-users] controllin the background of a plot

2011-07-24 Thread robert rottermann
Ok, your version is quite old, and might be older than when the bbox_inches='tight' feature was added. Unfortunately, the way savefig was designed, I think it would swallow extra kwargs. The current matplotlib is version 1.0.1, and we are getting close to cutting a new v1.1.0 release.

[Matplotlib-users] controllin the background of a plot

2011-07-23 Thread robert rottermann
Hi there, I am creating an image with mathplotlib. This image is then shown an a web page. now ma question. the Image is set in a large gray area. I assume it is the space needed for the axis which I do not show. How can I suppress this gray background? thanks robert here the code I use to

Re: [Matplotlib-users] controllin the background of a plot

2011-07-23 Thread robert rottermann
thanks ben, (sorry for sending answer twice) When you call savefig(), you can pass it the kwarg option of bbox_inches='tight' and that should help get rid of any extra area you may have. Ben Root I tried to follow your advice. however it did not help. This is what I do: - get the current

Re: [Matplotlib-users] controllin the background of a plot

2011-07-23 Thread robert rottermann
On 23/07/11 23:17, Benjamin Root wrote: On Sat, Jul 23, 2011 at 2:53 PM, robert rottermann robert.rotterm...@gmx.ch mailto:robert.rotterm...@gmx.ch wrote: thanks ben, (sorry for sending answer twice) When you call savefig(), you can pass it the kwarg option of bbox_inches

Re: [Matplotlib-users] hot to draw a line connecting a list of points

2011-07-21 Thread robert rottermann
who ever migth be interested: I achieved my goal in drawing lines trough a set of points using the path modul. http://matplotlib.sourceforge.net/users/path_tutorial.html robert On 20.07.2011 20:49, robert rottermann wrote: hi there, I would like to draw a a set of lines on top of an image

[Matplotlib-users] hot to draw a line connecting a list of points

2011-07-20 Thread robert rottermann
hi there, I would like to draw a a set of lines on top of an image. Somehow I do not get the result I want these are the points ((267, 140), (380, 773), (267, 958)) one of my divers atempts is: pic = plt.imread('../hlwd/effizienz_balken_01.jpg') pic = np.fliplr(np.rot90(pic, k=2))

Re: [Matplotlib-users] plotting using an image as background

2011-07-15 Thread robert rottermann
On 15.07.2011 17:56, Benjamin Root wrote: On Fri, Jul 15, 2011 at 10:49 AM, robert rob...@redcor.ch mailto:rob...@redcor.ch wrote: Hi there, I am all new to mathlib world.. What I try to do is plotting some charts over an image. I would be very grateful, if somebody could