Line clipping on subplot border mandatory?

Hello,

I would like to stack subplots in a figure with a couple of basic
x,y-line plots with the subplot frames removed.
But possible overlap of subplots is limited, because the drawn data
lines are clipped on the border, if you'd lets say manually reset the
ylims and decrease it below the highest data y-values.
I know it is possible with any kind of text or data annotation, but do
not find a way to let the data lines cross the frame border.

I hope I made myself halfway clear - pls. don't hesitate to ask if not.
Does one of you possibly have a solution or is it maybe plain
impossible?
Thanks!

Cheers,
Nix

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I would like to stack subplots in a figure with a couple of basic
x,y-line plots with the subplot frames removed.
But possible overlap of subplots is limited, because the drawn data
lines are clipped on the border, if you'd lets say manually reset the
ylims and decrease it below the highest data y-values.
I know it is possible with any kind of text or data annotation, but do
not find a way to let the data lines cross the frame border.

I hope I made myself halfway clear - pls. don't hesitate to ask if not.
Does one of you possibly have a solution or is it maybe plain
impossible?
Thanks!

Cheers,
Nix

Maybe you want to use matplotlib's spine feature? You are right that
you can't plot outside the plotable region, but maybe you can emulate
what you want by moving the axes lines into the plottable region.

I hope that helps!

Ben Root

···

On Monday, May 30, 2011, Mondsuechtiger <el_lunatico@...361...> wrote:

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJN40aCAAoJEGQ1ZathkK0XWqcIALPWS0vLh/oCISWfHaeB7NaV
7GOJizENlvD+kwuj1z8fEpMHOM2WrKYPX9GBh7SPGzHR+cZIcpmz0yCa2QhdB2jl
YSNLHjL1z33JZf+CMuMsn6iI5KEi8s1WIZGJhYTq5LCklPitvqu0qsT518BjWPMc
7pezJMmYPPBFFYsvSlemO2PMitfa4EIHCjufySWSoPSveTSS8VBT8IsRRhcxoUca
YmngZ7JA8vqrkJjRKUys5lyLsuKfUehhCmp+XaU6FAJL13rTe340dbfbUxp3IWfd
QyNcn+UHlWJtR9tPgC5NfndIGIx3O9/jmllqXTn47oLD3A3ekFG03UjGY6K1ccY=
=HuCp
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I would like to stack subplots in a figure with a couple of basic
x,y-line plots with the subplot frames removed.
But possible overlap of subplots is limited, because the drawn data
lines are clipped on the border, if you'd lets say manually reset the
ylims and decrease it below the highest data y-values.
I know it is possible with any kind of text or data annotation, but do
not find a way to let the data lines cross the frame border.

You can cross the Axes frame border by turning off clipping:

ll = plot([-1, 1])[0]
axis([0.1, 0.95, -1, 1])
ll.set_clip_on(False)
draw()

Eric

···

On 05/30/2011 05:21 AM, Benjamin Root wrote:

On Monday, May 30, 2011, Mondsuechtiger<el_lunatico@...361...> wrote:

I hope I made myself halfway clear - pls. don't hesitate to ask if not.
Does one of you possibly have a solution or is it maybe plain
impossible?
Thanks!

Cheers,
Nix

Maybe you want to use matplotlib's spine feature? You are right that
you can't plot outside the plotable region, but maybe you can emulate
what you want by moving the axes lines into the plottable region.

I hope that helps!

Ben Root

Ah, I see. I have to turn the clipping attribute off for the object(s) being plotted, not for the axes object. I learned something new today…

Ben Root

···

On Mon, May 30, 2011 at 1:12 PM, Eric Firing <efiring@…83…202…> wrote:

On 05/30/2011 05:21 AM, Benjamin Root wrote:

On Monday, May 30, 2011, Mondsuechtiger<el_lunatico@…361…> wrote:

-----BEGIN PGP SIGNED MESSAGE-----

Hash: SHA1

Hello,

I would like to stack subplots in a figure with a couple of basic

x,y-line plots with the subplot frames removed.

But possible overlap of subplots is limited, because the drawn data

lines are clipped on the border, if you’d lets say manually reset the

ylims and decrease it below the highest data y-values.

I know it is possible with any kind of text or data annotation, but do

not find a way to let the data lines cross the frame border.

You can cross the Axes frame border by turning off clipping:

ll = plot([-1, 1])[0]

axis([0.1, 0.95, -1, 1])

ll.set_clip_on(False)

draw()

Eric