Thanks. That's just the info I was looking for. I've started playing with these options.
setClipToView()
This makes a noticeable difference once you zoom in beyond the initial display.
My attempt with downsampling were not successful. I tried combinations of
mode and setting auto to true along with ds to a number but all of them yielded errors similar to this:
/usr/local/lib/python2.7/dist-packages/pyqtgraph-0.9.8_develop_c8ee4a86be_-py2.7.egg/pyqtgraph/graphicsItems/PlotDataItem.py:530: RuntimeWarning: divide by zero encountered in double_scalars
ds = int(max(1, int(0.2 * (x1-x0) / width)))
Traceback (most recent call last):
File "/home/rsmith/bin/process_hr.py", line 732, in <module>
process_files(args.filenames,args)
File "/home/rsmith/bin/process_hr.py", line 622, in process_files
w1p1.plot(t,red_source,pen='r')
File "/usr/local/lib/python2.7/dist-packages/pyqtgraph-0.9.8_develop_c8ee4a86be_-py2.7.egg/pyqtgraph/graphicsItems/PlotItem/PlotItem.py", line 622, in plot
self.addItem(item, params=params)
File "/usr/local/lib/python2.7/dist-packages/pyqtgraph-0.9.8_develop_c8ee4a86be_-py2.7.egg/pyqtgraph/graphicsItems/PlotItem/PlotItem.py", line 515, in addItem
item.setDownsampling(*self.downsampleMode())
File "/usr/local/lib/python2.7/dist-packages/pyqtgraph-0.9.8_develop_c8ee4a86be_-py2.7.egg/pyqtgraph/graphicsItems/PlotDataItem.py", line 323, in setDownsampling
self.updateItems()
File "/usr/local/lib/python2.7/dist-packages/pyqtgraph-0.9.8_develop_c8ee4a86be_-py2.7.egg/pyqtgraph/graphicsItems/PlotDataItem.py", line 462, in updateItems
x,y = self.getData()
File "/usr/local/lib/python2.7/dist-packages/pyqtgraph-0.9.8_develop_c8ee4a86be_-py2.7.egg/pyqtgraph/graphicsItems/PlotDataItem.py", line 530, in getData
ds = int(max(1, int(0.2 * (x1-x0) / width)))
OverflowError: cannot convert float infinity to integer
Is there more I have to do besides just setting .setDownsampling(auto=True,mode='peak') on the plot?