Labels sometimes cut off (pie chart)

The pie chart sometimes cuts off even relatively short labels that extend beyond the edge of the image (.1, .1, .8, .8).

What is the best way to dodge labels getting cut off, or is there not much of a good way?

TIA,

···


– Jonathan Hayward, christos.jonathan.hayward@…287…

** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?

** All of this is waiting for you at http://JonathansCorner.com

++ Would you like to curl up with one of my hardcover books?
++ You can now get my books from http://CJSHayward.com

I think I am facing a similar problem. I would like to auto-adjust the
chart frame.

For example, doing this, the title is cropped :

import pylab
pylab.plot([1,2,3])
pylab.title('Big One', fontsize=72)
pylab.show()

···

On Tue, Aug 5, 2008 at 12:21 PM, Jonathan Hayward, http://JonathansCorner.com <christos.jonathan.hayward@...287...> wrote:

The pie chart sometimes cuts off even relatively short labels that extend
beyond the edge of the image (.1, .1, .8, .8).

What is the best way to dodge labels getting cut off, or is there not much
of a good way?

TIA,

P.S.

I have found that I can mitigate the problem by changing the axes: changing,

ax = pylab.axes([0.1, 0.1, 0.8, 0.8])

to

ax = pylab.axes([0.2, 0.2, 0.6, 0.6])

shrinks almost everything towards the center, meaning that some things no longer get cut off.

(But this is at the expense of a smaller overall picture, that isn’t doing quite the same job graphically.)

This offers a partial workaround, but it’s nowhere near so good as it would be to move the labels inward so they don’t get cut off (while keeping the pie graph at a preferred size for the graph itself).

···

On Tue, Aug 5, 2008 at 10:42 AM, Mathieu Leplatre <leplatre@…287…> wrote:

On Tue, Aug 5, 2008 at 12:21 PM, Jonathan Hayward, > > http://JonathansCorner.com <christos.jonathan.hayward@…287…> > > wrote:

The pie chart sometimes cuts off even relatively short labels that extend

beyond the edge of the image (.1, .1, .8, .8).

What is the best way to dodge labels getting cut off, or is there not much

of a good way?

TIA,

I think I am facing a similar problem. I would like to auto-adjust the

chart frame.

For example, doing this, the title is cropped :

import pylab

pylab.plot([1,2,3])

pylab.title(‘Big One’, fontsize=72)

pylab.show()


– Jonathan Hayward, christos.jonathan.hayward@…287…

** To see an award-winning website with stories, essays, artwork,

** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com

++ Would you like to curl up with one of my hardcover books?

++ You can now get my books from http://CJSHayward.com