Fix plot example widget titles

This commit is contained in:
Caleb Bassi 2019-01-24 08:06:12 -08:00
parent 8c72139752
commit a7658ef79f
1 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ func main() {
p0.LineColors[0] = ui.ColorGreen
p1 := widgets.NewPlot()
p1.Title = "custom Line Chart"
p1.Title = "dot-mode line Chart"
p1.Marker = widgets.MarkerDot
p1.Data = [][]float64{[]float64{1, 2, 3, 4, 5}}
p1.SetRect(50, 0, 75, 10)
@ -61,7 +61,7 @@ func main() {
p2.Type = widgets.ScatterPlot
p3 := widgets.NewPlot()
p3.Title = "dot-mode Scatter Plot"
p3.Title = "braille-mode Scatter Plot"
p3.Data = make([][]float64, 2)
p3.Data[0] = []float64{1, 2, 3, 4, 5}
p3.Data[1] = sinData[1][4:]