SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Mondsuechtiger <el_...@gm...> - 2011年05月30日 07:26:06
-----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
-----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-----
From: Lars M. <moe...@gm...> - 2011年05月30日 21:58:42
Wonderful, thanks - that was far too easy to be 
thought of :)
Cheers,
Nix
On 05/30/2011 05:21 AM, Benjamin Root wrote:
> > On Monday, May 30, 2011, Mondsuechtiger<el_...@gm...> 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
>> >>
>> >> 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
> >
From: Benjamin R. <ben...@ou...> - 2011年05月30日 15:21:58
On Monday, May 30, 2011, Mondsuechtiger <el_...@gm...> 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.
>
> 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
> -----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
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Eric F. <ef...@ha...> - 2011年05月30日 18:12:46
On 05/30/2011 05:21 AM, Benjamin Root wrote:
> On Monday, May 30, 2011, Mondsuechtiger<el_...@gm...> 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
>>
>> 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
>
From: Benjamin R. <ben...@ou...> - 2011年05月30日 18:38:44
On Mon, May 30, 2011 at 1:12 PM, Eric Firing <ef...@ha...> wrote:
> On 05/30/2011 05:21 AM, Benjamin Root wrote:
> > On Monday, May 30, 2011, Mondsuechtiger<el_...@gm...> 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
>
>
>
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
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /