def compute(self):
        data = self.get_input("Input Array")
        indexes = self.force_get_input("Indexes")
        self.label_dict = None
        use_legend = self.force_get_input("Legend")
        randomcolors = self.force_get_input("Random Colors")
        colors = self.force_get_input_list("Colors")
        self.color_dict = None
        markers = self.force_get_input_list("Markers")
        self.marker_dict = None
        x_label = self.force_get_input("X Title")
        y_label = self.force_get_input("Y Title")
        p_title = self.force_get_input("Title")
        bg_color = self.force_get_input("Background")

        array_x_t = self.force_get_input("Use X Title")
        array_y_t = self.force_get_input("Use Y Title")

        s = urllib.unquote(str(self.force_get_input("source", '')))
        self.source = ''
        da_ar = data.get_array()

        if 2 > da_ar.ndim:
            raise ModuleError("Cannot plot data with dimensions > 2")
        
        s = 'from pylab import *\n' +\
            'from numpy import *\n' +\
            'import numpy\n'
        
        if bg_color == None:
            bg_color = 'w'

        if type(bg_color) == type(''):
            s += 'figure(facecolor=\'' + bg_color + '\')\n'
        else:
            s += 'figure(facecolor=' + str(bg_color) + ')\n'
            
        if da_ar.ndim == 1:
            da_ar.shape = (1, da_ar.shape[0])

        xar = self.force_get_input("X Values")
        sf = self.force_get_input("Scaling Factor")
        if sf == None:
            sf = 1.

        if xar == None:
            start_i = None
            end_i = None
            if indexes == None:
                start_i = 0
                end_i = da_ar.shape[1]
            else:
                start_i = indexes[0]
                end_i = indexes[1]

            xar = numpy.arange(start_i, end_i)
            xar = xar * sf
        else:
            xar = xar.get_array()
        
        print da_ar.shape
        print xar.shape
        for i in range(da_ar.shape[0]):
            lab = self.get_label(data, i)
            col = self.get_color(colors, i, randomcolors)
            mar = self.get_marker(markers, i)
            if indexes == None:
                s += 'plot(xar, da_ar[' + str(i) + ',:]'
            else:
                s += 'plot(xar, da_ar[' + str(i) + ',' + str(indexes[0]) + ':' + str(indexes[1]) + ']'
                
            if lab != None:
                s += ', label=\'' + lab +'\''
            if col != None:
                s += ', color=' + str(col)
            if mar != None:
                s += ', marker=\'' + mar + '\''
            s += ')\n'

        if use_legend:
            s += 'legend()\n'

        if array_x_t:
            s += 'xlabel(\'' + data.get_domain_name() + '\')\n'
        elif x_label:
            s += 'xlabel(\'' + x_label + '\')\n'

        if array_y_t:
            s += 'ylabel(\'' + data.get_range_name() + '\')\n'
        elif y_label:
            s += 'ylabel(\'' + y_label + '\')\n'

        if p_title:
            s += 'title(\'' + p_title + '\')\n'

        exec s
        self.set_output("source", s)
dataset/ETHPy150Open VisTrails/VisTrails/contrib/NumSciPy/ArrayPlot.py/LinePlot.compute/swapped operands of `>`