On Sat, Nov 29, 2008 at 6:48 AM, TP <[EMAIL PROTECTED]> wrote: > Hi everybody, > > In my own application, I want to specialize matplotlib.lines.Line2D to be > able to deal with units. > Concerning this class, is there a direct means to plot instances? > > For example, if I do: > >>>> a=matplotlib.lines.Line2D([5,6],[7,8],color='m')
You can add it directly to the Axes/Subplot instance with ax.add_line(a) See also the http://matplotlib.sourceforge.net/examples/pylab_examples/clippedline.html example which shows how to create a custom, derived line class. JDH ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users