RE How to turn off all clipping?

John and Eric,

Thanks for your responses. I think I can do what I want
with your suggestions.

As for the reason I wanted to know this: I found that when
I placed a pdf image created with matplotlib into Adobe Illustrator and then
shrunk it down to fit into my poster that the edges of my plot were being
cut-off by the clipping mask. In addition, the clipping masks were being
grouped with the matplotlib lines (called a path in Illustrator) and it made it
more difficult to find an individual path and tweak it in Illustrator.

Thanks again,

Sara

···

From: John Hunter
[mailto:jdh2358@…287…]
Sent: Thursday, March 19, 2009 12:44 PM
To: Eric Firing
Cc: Hatch, Sara J; matplotlib-users@lists.sourceforge.net
Subject: Re: [Matplotlib-users] How to turn off all clipping?

On Thu, Mar 19, 2009 at 2:33 PM, Eric Firing <efiring@…202…> wrote:

def noclip(ax):
“Turn off all clipping in axes ax; call immediately before
drawing”
ax.set_clip_on(False)
artists = []

Or even better::

for o in fig.findobj():
o.set_clip_on(False)

findobj is an artist method that recursive searches all the
artists contained in it – you can optionally specify the type of artist you
want returned. See

http://matplotlib.sourceforge.net/examples/pylab_examples/findobj_demo.html

JDH