@@ -0,0 +1,534 @@
+from __future__ import print_function%0A%0Aclass Exporter():%0A    def init(self, plotinfo, viewbox):%0A        self.plotinfo = plotinfo%0A        self.viewbox = viewbox%0A        datalen = plotinfo.plotdata.shape%5B0%5D %0A        vbrange = viewbox.viewRange()%0A        xmin,xmax = vbrange%5B0%5D%0A        if xmin %3C= 0: xmin = 0%0A        if xmax %3E= datalen: xmax = datalen%0A        self.xmax, self.xmin = xmax, xmin%0A%0A    def tocsv(self, filename):%0A        data = self.plotinfo.plotdata.iloc%5Bself.xmin : self.xmax%5D%0A        data.to_csv(filename, index = False)%0A

Add exporter module.