Hi John,

Thanks a lot for the example code; it answered my question.

Best Regards,
Omer


On Tue, May 25, 2010 at 14:25, John Hunter <jdh2...@gmail.com> wrote:

> On Tue, May 25, 2010 at 6:46 AM, Omer Khalid <omer.kha...@cern.ch> wrote:
> > Hi Jae,
> > Thanks for your reply and letting me know about this. Can you please
> point
> > me to some code example?
>
> In [226]: t = np.arange(0, 2, 0.05)
>
> In [227]: s = np.sin(2*np.pi*t)
>
> In [228]: plot(t, s, '-')
> Out[228]: [<matplotlib.lines.Line2D object at 0x9ef1fcc>]
>
> Approach  1:
>
> In [229]: plot(t, s, 'o', markevery=10)
> Out[229]: [<matplotlib.lines.Line2D object at 0x9eb932c>]
>
> Approach 2:
>
> In [230]: plot(t[::5], s[::5], 's')
> Out[230]: [<matplotlib.lines.Line2D object at 0x1431f30c>]
>
------------------------------------------------------------------------------

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to