scatter3.markerSize = 1 scatter3.color = "blue" scatterPlot = Plot() scatterPlot.add(scatter1) scatterPlot.add(scatter2) scatterPlot.xLabel = "Distance Along Cross Section" scatterPlot.yLabel = "Surface Height" scatterPlot.setTwinX("1st Derivative", 1) scatterPlot.title = "Surface (filtered)" scatterPlot.hasLegend() layout = PlotLayout() layout.addPlot(scatterPlot) layout.plot() layout.save("profile1_filtered.png") # plot the filtered surface with the original surface 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 = surf scatter2.label = "Original Surf" scatter2.markerSize = 1