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.plot()
#layout.save("profile1_so_gradient_filtered.png")

# plot the original surface with the predicted road surface features
scatter1 = Scatter()
scatter1.xValues = x
scatter1.yValues = surf
scatter1.markerSize = 1
scatter1.label = "Surface"
scatter1.color = "black"

scatter2 = Scatter()
scatter2.xValues = roadFeatures[:, 0]
scatter2.yValues = roadFeatures[:, 1]
scatter2.label = "Road Features"
scatter2.marker = "D"
scatter2.markerSize = 65
scatter2.color = "red"


scatterPlot = Plot()
scatterPlot.add(scatter1)
scatterPlot.add(scatter2)

scatterPlot.xLabel = "Distance Along Cross Section"
scatterPlot.yLabel = "Surface Height"
scatterPlot.title = "Road Features"
scatterPlot.hasLegend()

layout = PlotLayout()
layout.addPlot(scatterPlot)