Example #1
0
    def __init__(self, label, color):
        line = Line()
        line.marker = "."
        line.label = label
        line.color = color
        self.line = line

        scatter = Scatter()
        scatter.marker = "x"
        scatter.color = color
        scatter.markerSize = 200
        self.scatter = scatter
Example #2
0
layout = PlotLayout()
layout.addPlot(linePlot)
#layout.plot()
layout.save("profile1_fft.png")
#pylab.subplot(212)
#pylab.plot(freqs,20*scipy.log10(FFT),'x')
#pylab.show()

# plot the filtered surface with the gradient
scatter1 = Scatter()
scatter1.xValues = x
scatter1.yValues = surfFiltered
scatter1.markerSize = 1
scatter1.label = "Filtered Surface"
scatter1.color = "black"

scatter2 = Scatter()
scatter2.xValues = x
scatter2.yValues = surfFilteredGradient
scatter2.label = "1st Derivative"
scatter2.markerSize = 1
scatter2.color = "green"

scatter3 = Scatter()
scatter3.xValues = x
scatter3.yValues = surf
scatter3.label = "Original Surface"
scatter3.markerSize = 1
scatter3.color = "blue"