Prefix plot filename with current k

This commit is contained in:
Christian Muehlhaeuser
2018-06-05 20:41:12 +02:00
parent 76471daa2d
commit b7064e5971

View File

@@ -85,7 +85,7 @@ func (p SimplePlotter) Plot(cc clusters.Clusters, iteration int) {
if err != nil {
panic(err)
}
err = ioutil.WriteFile(fmt.Sprintf("%d.png", iteration), buffer.Bytes(), 0644)
err = ioutil.WriteFile(fmt.Sprintf("%d_%d.png", len(cc), iteration), buffer.Bytes(), 0644)
if err != nil {
panic(err)
}