On 2014/03/06 10:43 PM, svebert wrote:
> Hi!
>
> I plot measurment data and connect them with lines (style eg. "-*r"). Points
> which are outside of the ylimits are still connected with points which are
> inside of the ylimits. Is there any way to tell matplot to only connect two
> points if both are inside the y/x-limits?
> Because now i get weird lines crossing the whole canvas if some points
> spread to much from the mean data.
>
> Removing points before plotting is not an option because then points are
> connected which are not in consecutive order. Matplotlib should just skip a
> connecting line when one of the two points lies without the canvas/limits.

It sounds like what you need to do is either use a masked array and mask 
out the points that are outside the limits, or use NaNs for that purpose.

Eric

>
> Is there any simple way/option to do tha?
>
> Thanks in advance,
> Sven
>
>
>
> --
> View this message in context: 
> http://matplotlib.1069221.n5.nabble.com/Clip-or-skip-lines-going-over-border-of-canvas-tp43015.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
> With Perforce, you get hassle-free workflows. Merge that actually works.
> Faster operations. Version large binaries.  Built-in WAN optimization and the
> freedom to use Git, Perforce or both. Make the move to Perforce.
> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>


------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to