pygpibtoolkit/plotter/hpgl_mpl.py

changeset 104
916c255b3079
parent 103
ad9b6e53ca68
child 105
89123c2af2fd
--- a/pygpibtoolkit/plotter/hpgl_mpl.py	Thu May 24 23:10:06 2018 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-# -*- coding: utf-8 -*-
-import numpy
-import pylab
-
-from hpgl_parser import HPGLParser
-
-class HPGLmplPlotter(HPGLParser):
-    pens = "krbgcmyw"
-    lines = ['-', ':', '--', '-.', '.', '-', '-', '-']
-    def __init__(self, data):        
-        super(HPGLmplPlotter, self).__init__(data)
-        pylab.show()
-        
-    def plot_symbols(self, points):
-        x, y = points.T
-        pylab.plot(x, y, 'o')
-
-    def plot_lines(self, points):
-        x, y = points.T
-        pylab.plot(x, y, self.pens[self.pen]+self.lines[self.line_type])
-        
-if __name__ == "__main__":
-    import sys
-    data = open(sys.argv[1]).read()
-    HPGLmplPlotter(data)
-    

mercurial