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 gokhanse...@gmail.comwrote: For the 5th one ;) figure(frameon=False) On Mon, Jul 27, 2009 at 8:26 AM, Gewton Jhames gjha...@gmail.com wrote: Hello, would you help me in some design issues that I wish to put in my

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

Re: [Matplotlib-users] Design questions

2009-07-27 Thread Gewton Jhames
: 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 gjha...@gmail.com wrote: Thanks everyone. Everything works perfectly. Only a few things left: 1. How to trim the canvas of the image generated? It's

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,

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 lee.j.j...@gmail.com wrote: On Mon, Jul 27, 2009 at 4:06 PM, Gewton Jhamesgjha...@gmail.com wrote: How to trim the canvas of the image generated? It's transparent, but still

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 gjha...@gmail.com 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 lee.j.j...@gmail.comwrote: On Mon, Jul 27, 2009 at 4:06 PM, Gewton Jhamesgjha

Re: [Matplotlib-users] Design questions

2009-07-30 Thread Gewton Jhames
Anyone? On Tue, Jul 28, 2009 at 3:23 PM, Gewton Jhames gjha...@gmail.com wrote: Guys, there is the code. On Tue, Jul 28, 2009 at 3:13 PM, Gewton Jhames gjha...@gmail.com 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

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 ton...@mit.edu wrote: On Jul 30, 2009, at 5:16 PM, Gewton Jhames wrote: Anyone? On Tue, Jul 28, 2009 at 3:23 PM, Gewton Jhames gjha...@gmail.com wrote: Guys

[Matplotlib-users] Change Font Properties of Annotations

2009-08-03 Thread Gewton Jhames
I'm having problems to simply set 'bold' the font weight of some annotations. Tryin'this: fig = plt.figure(frameon=False) ax = plt.gca() font = matplotlib.font_manager.FontProperties(family='Tahoma', weight='extra bold', size=12) annotation_total = ax.annotate('Total:', xy=(0, -320),

Re: [Matplotlib-users] Change Font Properties of Annotations

2009-08-05 Thread Gewton Jhames
here, so I can't test whether there's something in particular about them that is causing this failure. Cheers, Mike Gewton Jhames wrote: I'm having problems to simply set 'bold' the font weight of some annotations. Tryin'this: fig = plt.figure(frameon=False) ax = plt.gca() font

[Matplotlib-users] Graph title trepassing bounds

2009-08-11 Thread Gewton Jhames
Hello everyone, my graph's title is been greater than the size of the graph. There's a way to get the width of the graph's title so I can increase the width of the graph based on it? Thanks. -- Let Crystal Reports handle

[Matplotlib-users] DO NOT round values

2009-09-15 Thread Gewton Jhames
Hello everyone, when I plot, just for example, a pie graph with two values: 63.7 and 36.3, matplotlib rounds this values to 64 and 36. What I must do for matplotlib DO NOT round those values? Thanks -- Come build with us!

[Matplotlib-users] Simple gradient

2009-09-30 Thread Gewton Jhames
Hello everyone, I wish a simple sample of creating a pie graph filled with a gradient from blue(#98D0D8) to a lighter blue(#BAE5EB). Here's the code (I got from the samples): from pylab import * # make a square figure and axes figure(1, figsize=(6,6)) ax = axes([0.1, 0.1, 0.8, 0.8]) labels =

Re: [Matplotlib-users] Customize SHADOW

2009-09-30 Thread Gewton Jhames
', 'pad':5}) show() On Wed, Sep 30, 2009 at 5:19 PM, Michael Droettboom md...@stsci.edu wrote: Can you provide the script that produces these graphs? I don't see any difference between 0.98.5 and 0.99.1 on the included pie_demo.py example. Which backend are you using? Mike Gewton Jhames

Re: [Matplotlib-users] Customize SHADOW

2009-10-01 Thread Gewton Jhames
.__version__ Are there any other differences between the two installations, such as backend? Cheers, Mike Gewton Jhames wrote: sorry, this is the script: #!/usr/bin/python # -*- coding: utf-8 -*- from pylab import * from matplotlib.pyplot import figure, show from matplotlib.patches

Re: [Matplotlib-users] Customize SHADOW

2009-10-01 Thread Gewton Jhames
was the best one for this case. On Thu, Oct 1, 2009 at 10:13 AM, Gewton Jhames gjha...@gmail.com wrote: OK, yesterday I was taking a look to the patch module. then, I went home. Today, I'll continue to look at these properties of alpha. because, yes, that's what's happening. one have alpha .5

Re: [Matplotlib-users] Customize SHADOW

2009-10-01 Thread Gewton Jhames
/lib/matplotlib/patches.py?r1=7443r2=7837pathrev=7837 Cheers, Mike Gewton Jhames wrote: solved. In the system with the 0.99 version, in the file axes.py, class Axes, method pie, the shadow is created: if shadow: # make sure to add a shadow after the call

Re: [Matplotlib-users] Customize SHADOW

2009-10-01 Thread Gewton Jhames
sorry, I forget the patch very simple.no big deal. On Thu, Oct 1, 2009 at 2:04 PM, Gewton Jhames gjha...@gmail.com wrote: worked fine. On Thu, Oct 1, 2009 at 1:10 PM, Michael Droettboom md...@stsci.eduwrote: I'm not quite clear on what changes you made. Can you provide a patch? Also

Re: [Matplotlib-users] Simple gradient

2009-10-04 Thread Gewton Jhames
as the SVG format and put some gradient using inkscape, or similar tools. Regards, -JJ On Wed, Sep 30, 2009 at 12:21 PM, Gewton Jhames gjha...@gmail.com wrote: Hello everyone, I wish a simple sample of creating a pie graph filled with a gradient from blue(#98D0D8) to a lighter blue