Re: [Matplotlib-users] Design questions

2009-08-03 Thread Gewton Jhames
plt.subplots_adjust combined with ajustments in fig.set_size_inches is finally working. On Fri, Jul 31, 2009 at 11:55 AM, Tony S Yu wrote: > On Jul 30, 2009, at 5:16 PM, Gewton Jhames wrote: > > Anyone? > > On Tue, Jul 28, 2009 at 3:23 PM, Gewton Jhames wrote: > >> Guys, there is the code. >> On

Re: [Matplotlib-users] Design questions

2009-07-31 Thread Tony S Yu
On Jul 30, 2009, at 5:16 PM, Gewton Jhames wrote: Anyone? On Tue, Jul 28, 2009 at 3:23 PM, Gewton Jhames wrote: Guys, there is the code. On Tue, Jul 28, 2009 at 3:13 PM, Gewton Jhames wrote: Jae-Joon Lee, savefig("file.png", bbox_inches="tight") doesn't work too. On Mon, Jul 27, 200

Re: [Matplotlib-users] Design questions

2009-07-30 Thread Gewton Jhames
Anyone? On Tue, Jul 28, 2009 at 3:23 PM, Gewton Jhames wrote: > Guys, there is the code. > On Tue, Jul 28, 2009 at 3:13 PM, Gewton Jhames wrote: > >> Jae-Joon Lee, savefig("file.png", bbox_inches="tight") doesn't work too. >> >> On Mon, Jul 27, 2009 at 7:00 PM, Jae-Joon Lee wrote: >> >>> On Mon

Re: [Matplotlib-users] Design questions

2009-07-28 Thread Gewton Jhames
Guys, there is the code. On Tue, Jul 28, 2009 at 3:13 PM, Gewton Jhames wrote: > Jae-Joon Lee, savefig("file.png", bbox_inches="tight") doesn't work too. > > On Mon, Jul 27, 2009 at 7:00 PM, Jae-Joon Lee wrote: > >> On Mon, Jul 27, 2009 at 4:06 PM, Gewton Jhames wrote: >> > How to "trim the canva

Re: [Matplotlib-users] Design questions

2009-07-28 Thread Gewton Jhames
Jae-Joon Lee, savefig("file.png", bbox_inches="tight") doesn't work too. On Mon, Jul 27, 2009 at 7:00 PM, Jae-Joon Lee wrote: > On Mon, Jul 27, 2009 at 4:06 PM, Gewton Jhames wrote: > > How to "trim the canvas" of the image generated? It's transparent, but > still > > have a "padding", if it wou

Re: [Matplotlib-users] Design questions

2009-07-28 Thread Gewton Jhames
John Hunter, ax.autoscale_view(tight=True, scaley=False) didn't work. I put it before and after plot. Didn't work in any case. the first one, fig.subplots_adjust(left=0.05, bottom=0.05, top=0.05, right=0.05), didn't work too. It let's the graph crazy. If you want, I can put the code here. On Mon, J

Re: [Matplotlib-users] Design questions

2009-07-27 Thread Jae-Joon Lee
On Mon, Jul 27, 2009 at 4:06 PM, Gewton Jhames wrote: > How to "trim the canvas" of the image generated? It's transparent, but still > have a "padding", if it would be cropped, I can safe almost 200px!. I have > attached a file to this email to show it, the background of the graph was > set to red

Re: [Matplotlib-users] Design questions

2009-07-27 Thread John Hunter
On Mon, Jul 27, 2009 at 3:06 PM, Gewton Jhames wrote: > Thanks everyone. Everything works perfectly. > Only a few things left: > > How to "trim the canvas" of the image generated? It's transparent, but still > have a "padding", if it would be cropped, I can safe almost 200px!. I have > attached a f

Re: [Matplotlib-users] Design questions

2009-07-27 Thread John Hunter
On Mon, Jul 27, 2009 at 10:55 AM, Tony S Yu wrote: > Below is some code to do 1, 2, and 4. > The 3rd issue is a bit more difficult. One approach is to use > Jae-Joon's AxesGrid toolkit; you > may need to be using the latest development version of matplotlib to use the toolkit. > BTW, does anyone kn

Re: [Matplotlib-users] Design questions

2009-07-27 Thread Gewton Jhames
That's right Gökhan, I should have thought on it before ask. Thanks. Only the first one remains... this one I could not find a way. I know there is one class called FigureCanvasAgg, but I didn't find anything on it. On Mon, Jul 27, 2009 at 5:16 PM, Gökhan SEVER wrote: > For the 2nd one; > > To r

Re: [Matplotlib-users] Design questions

2009-07-27 Thread Gökhan SEVER
For the 2nd one; To re-position the figure content you might use axis(xmin= , xmax= ) On Mon, Jul 27, 2009 at 3:06 PM, Gewton Jhames wrote: > Thanks everyone. Everything works perfectly. > Only a few things left: > >1. How to "trim the canvas" of the image generated? It's transparent, >

Re: [Matplotlib-users] Design questions

2009-07-27 Thread Gewton Jhames
Thanks everyone. Everything works perfectly. Only a few things left: 1. How to "trim the canvas" of the image generated? It's transparent, but still have a "padding", if it would be cropped, I can safe almost 200px!. I have attached a file to this email to show it, the background of the g

Re: [Matplotlib-users] Design questions

2009-07-27 Thread Jae-Joon Lee
On Mon, Jul 27, 2009 at 11:55 AM, Tony S Yu wrote: > The 3rd issue is a bit more difficult. One approach is to use > Jae-Joon's AxesGrid toolkit; you > may need to be using the latest development version of matplotlib to use the toolkit. I think it would be easier to use the recently added spine s

Re: [Matplotlib-users] Design questions

2009-07-27 Thread Tony S Yu
Below is some code to do 1, 2, and 4. The 3rd issue is a bit more difficult. One approach is to use Jae- Joon's AxesGrid toolkit; you may need to be using the latest development version of matplotlib to use the toolkit. BTW, does anyone know why it's ``ax.set_axis_bgcolor`` instead of ``ax

Re: [Matplotlib-users] Design questions

2009-07-27 Thread Gewton Jhames
thanks!! only 4 left. On Mon, Jul 27, 2009 at 11:31 AM, Gökhan SEVER wrote: > For the 5th one ;) > > figure(frameon=False) > > On Mon, Jul 27, 2009 at 8:26 AM, Gewton Jhames wrote: > >> Hello, would you help me in some design issues that I wish to put in my >> matplotlib graph? >> I want my grap

Re: [Matplotlib-users] Design questions

2009-07-27 Thread Gökhan SEVER
For the 5th one ;) figure(frameon=False) On Mon, Jul 27, 2009 at 8:26 AM, Gewton Jhames wrote: > Hello, would you help me in some design issues that I wish to put in my > matplotlib graph? > I want my graph look like the one that I'm attaching on this email: > > >- Change the Background-col

[Matplotlib-users] Design questions

2009-07-27 Thread Gewton Jhames
Hello, would you help me in some design issues that I wish to put in my matplotlib graph? I want my graph look like the one that I'm attaching on this email: - Change the Background-color of the axis to gray; - Display only horizontal lines on the axis, in white color; - Display only the