<div dir="ltr">Perfect, thank you Danny!<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 8, 2014 at 3:49 PM, Danny Yoo <span dir="ltr"><<a href="mailto:dyoo@hashcollision.org" target="_blank">dyoo@hashcollision.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Dec 8, 2014 at 7:48 AM, Colin Ross <<a href="mailto:colin.ross.dal@gmail.com">colin.ross.dal@gmail.com</a>> wrote:<br>
> Good afternoon,<br>
><br>
> I am using the following to code to plot the output from an optical encoder:<br>
<br>
</span>Hi Colin,<br>
<br>
Matplotlib is a third-party library, so you may also consider asking<br>
the matplotlib folks.<br>
<br>
>From a brief look at:<br>
<br>
    <a href="http://matplotlib.org/1.4.2/users/pyplot_tutorial.html#working-with-multiple-figures-and-axes" target="_blank">http://matplotlib.org/1.4.2/users/pyplot_tutorial.html#working-with-multiple-figures-and-axes</a><br>
<br>
it appears that you can override the default axis, and specify xmin,<br>
ymin, xmax, and ymax values.<br>
<br>
    <a href="http://matplotlib.org/1.4.2/api/pyplot_api.html#matplotlib.pyplot.axis" target="_blank">http://matplotlib.org/1.4.2/api/pyplot_api.html#matplotlib.pyplot.axis</a><br>
<br>
For your particular case, you may want to just limit your x axis, in<br>
which case xlim() might be appropriate.<br>
<br>
    <a href="http://matplotlib.org/1.4.2/api/pyplot_api.html#matplotlib.pyplot.xlim" target="_blank">http://matplotlib.org/1.4.2/api/pyplot_api.html#matplotlib.pyplot.xlim</a><br>
<br>
<br>
If all else fails, just filter your data before submitting it to the<br>
grapher.  The program loads data here, using loadtxt<br>
(<a href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.loadtxt.html" target="_blank">http://docs.scipy.org/doc/numpy/reference/generated/numpy.loadtxt.html</a>):<br>
<span class=""><br>
    data = np.loadtxt('2014_12_04-16_30_03.txt',skiprows = 0 ,usecols = (0,1))<br>
<br>
</span>and it's just a numpy array: you can manipulate numpy arrays.   See:<br>
<br>
    <a href="http://stackoverflow.com/questions/26154711/filter-rows-of-a-numpy-array" target="_blank">http://stackoverflow.com/questions/26154711/filter-rows-of-a-numpy-array</a><br>
<br>
as an example of an approach.<br>
</blockquote></div><br></div>