On Thu, Jan 29, 2009 at 1:40 PM, <projet...@club-internet.fr> wrote: > Thanks, your example works but what I must do so to plot for example y=cos x > ? I'm a very beginner.
line, = ax.plot(x, np.cos(x)) patch = patches.Circle((300,300), radius=100) line.set_clip_path(patch) Everything in the matplotlib figure is an "Artist" (lines, images, text, rectangles) and you can set the clippath of any artist. See http://matplotlib.sourceforge.net/users/artists.html http://matplotlib.sourceforge.net/api/artist_api.html JDH ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users