Skip to content

Instantly share code, notes, and snippets.

@steniowagner
Created December 14, 2017 00:30
Show Gist options
  • Save steniowagner/f34dc6efc298b34391ec9ed34d2f3f6c to your computer and use it in GitHub Desktop.
Save steniowagner/f34dc6efc298b34391ec9ed34d2f3f6c to your computer and use it in GitHub Desktop.
import numpy as np
import matplotlib.pyplot as plt
results = [128.404195237, 97.3462196942, 97.32592423, 77.4317551694]
clusters_points = [2, 3, 4, 5]
plt.xlim([2, 5])
plt.ylim([50, 140])
plt.plot(clusters_points, results, 'go') # bolinha verde
plt.plot(clusters_points, results, 'k:', color='blue') # linha pontilhada
plt.grid(True)
plt.xlabel("Clusters")
plt.ylabel("Error")
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment